*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2933;
  background-color: #f4f5f7;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin: 0 auto;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  color: #f9fafb;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  gap: 1rem;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #fbbf24;
}

.logo-text h1 {
  font-size: 1rem;
  margin: 0;
}

.logo-text p {
  font-size: 0.78rem;
  margin: 0;
  opacity: 0.85;
}

.main-nav {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.main-nav a {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.main-nav a:hover {
  background: #fbbf24;
  color: #111827;
  transform: translateY(-1px);
}

/* Hero */

.hero {
  position: relative;
  min-height: 80vh;
  background-size: cover;
  background-position: center;
  color: #f9fafb;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.9), rgba(56, 189, 248, 0.4));
}

.hero-content {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  max-width: 620px;
}

.hero-content h2 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  margin-bottom: 0.75rem;
}

.hero-content p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.hero-note {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #f97316, #fbbf24);
  color: #111827;
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(251, 191, 36, 0.45);
}

.btn.secondary {
  background: transparent;
  border-color: #e5e7eb;
  color: #f9fafb;
}

.btn.secondary:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: #fbbf24;
}

.btn.outline {
  background: transparent;
  border-color: #f97316;
  color: #c2410c;
}

.btn.outline:hover {
  background: rgba(248, 250, 252, 0.9);
}

.btn.full {
  width: 100%;
}

/* Sections */

.section {
  padding: 3.5rem 0;
}

.section.alt {
  background: #ffffff;
}

.section-title {
  font-size: 1.7rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.section-intro {
  margin-top: 0;
  margin-bottom: 1.5rem;
  max-width: 640px;
}

/* Grid helpers */

.grid-two {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-two {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: flex-start;
  }
}

/* Feature cards */

.feature-cards {
  display: grid;
  gap: 1rem;
}

.feature-card {
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Icon list */

.icon-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.icon-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.4rem;
}

.icon-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #f97316;
  font-size: 1.2rem;
}

/* Cards grid */

.cards-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 999px) and (min-width: 600px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  border-radius: 1rem;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card img {
  height: 160px;
  object-fit: cover;
}

.card-body {
  padding: 0.85rem 0.95rem 1.1rem;
}

.card-body h4 {
  margin: 0 0 0.4rem;
}

/* Gallery */

.gallery-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gallery-item {
  border-radius: 0.7rem;
  overflow: hidden;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
  opacity: 0.97;
}

/* Modal */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 1.5rem;
}

.modal.open {
  display: flex;
}

.modal-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.modal img {
  max-height: 80vh;
  margin-bottom: 0.75rem;
  border-radius: 0.9rem;
}

.modal-caption {
  color: #e5e7eb;
}

.modal-close {
  position: absolute;
  right: 0.5rem;
  top: -0.5rem;
  border: none;
  background: #111827;
  color: #f9fafb;
  font-size: 1.8rem;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
}

/* Video */

.video-section {
  align-items: center;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Redes */

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.fb-embed iframe {
  width: 100%;
  max-width: 380px;
  height: 400px;
}

/* Contacto */

.contact-data p {
  margin: 0 0 0.35rem;
}

.contact-form {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.25rem 1.3rem 1.4rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.form-group {
  margin-bottom: 0.85rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  border: 1px solid #d1d5db;
  font: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid #f97316;
  outline-offset: 2px;
  border-color: #f97316;
}

.form-note {
  font-size: 0.78rem;
  margin-top: 0.6rem;
  color: #6b7280;
}

/* Footer */

.main-footer {
  background: #020617;
  color: #e5e7eb;
  padding: 1.5rem 0;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.85rem;
  text-align: center;
}

.main-footer a {
  color: #fbbf24;
}

/* WhatsApp floating button */

.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #22c55e;
  color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(22, 163, 74, 0.6);
  font-size: 1.8rem;
  z-index: 90;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(22, 163, 74, 0.8);
  background: #16a34a;
}

/* Responsive tweaks */

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .hero {
    min-height: 75vh;
  }
}
