
:root {
  --color-green: #2b7d2b;
  --color-green-light: #7fd33f;
  --color-yellow: #ffd64a;
  --color-blue: #0077c8;
  --color-white: #ffffff;
  --color-text: #12302d;
  --shadow-soft: 0 12px 30px rgba(0,0,0,0.15);
  --radius-lg: 20px;
  --radius-xl: 30px;
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: #f3f7f5;
  line-height: 1.6;
}

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

.section-padding {
  padding: 4rem 0;
}

h1, h2, h3 {
  margin-top: 0;
  font-weight: 700;
  color: #0b241f;
}

.section-intro {
  max-width: 620px;
  margin: 0 auto 2.5rem auto;
  text-align: center;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 35, 24, 0.95);
  backdrop-filter: blur(10px);
}

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

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--color-yellow);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-main {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-sub {
  font-size: 0.78rem;
  color: #c3f9e0;
}

.main-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.88rem;
}

.main-nav a {
  color: #e6fff7;
  text-decoration: none;
  padding: 0.2rem 0.4rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
}

.btn-llamar-header {
  background: var(--color-yellow);
  color: #153019;
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* Hero */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  color: var(--color-white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0,45,38,0.85), rgba(0,105,92,0.6));
}

.hero-content {
  position: relative;
  padding: 4.5rem 0 4rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.hero-text {
  max-width: 560px;
  font-size: 1rem;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-green-light), var(--color-blue));
  color: #052018;
  box-shadow: var(--shadow-soft);
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,0.8);
  color: #f6fffb;
  background: transparent;
}

.btn-primary.full-width {
  width: 100%;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.83rem;
  max-width: 620px;
}

.trust-badge {
  background: rgba(255,255,255,0.17);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
}

/* Sección sobre */
.sobre-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.sobre-text p {
  margin-bottom: 0.7rem;
}

.sobre-list {
  padding-left: 1.2rem;
  margin-top: 0.8rem;
}

.sobre-list li + li {
  margin-top: 0.25rem;
}

.sobre-media {
  display: grid;
  gap: 1rem;
}

.sobre-main-photo img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.sobre-sub-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0.8rem;
}

.sobre-sub-photos img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

/* Servicios */
.servicios {
  background: radial-gradient(circle at top left, #ddffea, #f4fbf7);
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}

.servicio-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.2rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  border: 1px solid #e1f3e8;
}

/* Galería */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
}

.galeria-item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #dbeeee;
  cursor: zoom-in;
}

.galeria-item img {
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.galeria-item:hover img {
  transform: scale(1.05);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 90%;
}

.modal-dialog img {
  width: 100%;
  border-radius: var(--radius-lg);
  max-height: 90vh;
  object-fit: contain;
  background: #000;
}

.modal-close {
  position: absolute;
  top: -2.3rem;
  right: 0;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
}

/* Video */
.video-section {
  background: #f6fafb;
}

.video-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
}

.video-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #000;
}

.video-aspect {
  position: relative;
  padding-top: 56.25%;
}

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

.video-list {
  padding-left: 1.2rem;
}

.video-list li + li {
  margin-top: 0.3rem;
}

/* Contacto */
.contacto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
}

.contacto-datos p {
  margin: 0.2rem 0;
}

.contacto-datos a {
  color: var(--color-blue);
  text-decoration: none;
}

.social-links h3 {
  margin-bottom: 0.6rem;
}

.social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.social-btn {
  text-decoration: none;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: #0b4c3a;
  color: #e8fff9;
  font-size: 0.85rem;
}

.embed-wrapper {
  margin-top: 1rem;
}

.fb-embed-placeholder {
  border-radius: var(--radius-lg);
  border: 1px dashed #94c4ac;
  padding: 0.9rem;
  background: #f2faf6;
  font-size: 0.85rem;
}

.fb-embed-placeholder a {
  color: var(--color-blue);
  font-weight: 600;
}

/* Formulario */
.contacto-form-wrapper {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid #d3ece1;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-field label {
  font-size: 0.88rem;
}

.form-field input,
.form-field textarea {
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  border: 1px solid #c4ddd0;
  font: inherit;
  resize: vertical;
}

/* Botón WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
  z-index: 50;
}

.whatsapp-icon {
  font-size: 1.7rem;
}

/* Footer */
.site-footer {
  background: #041612;
  color: #e6fff7;
  padding: 1.5rem 0;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer a {
  color: #9fead0;
  text-decoration: none;
}

/* Responsivo */
@media (max-width: 960px) {
  .servicios-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .galeria-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .video-grid,
  .contacto-grid,
  .sobre-grid {
    grid-template-columns: minmax(0,1fr);
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .main-nav {
    display: none;
  }
  .hero {
    min-height: 70vh;
  }
}

@media (max-width: 520px) {
  .section-padding {
    padding: 3rem 0;
  }
  .servicios-grid,
  .galeria-grid {
    grid-template-columns: minmax(0,1fr);
  }
}
