:root {
  --bg: #f7f5f2;
  --dark: #143642;
  --accent: #d2a76c;
  --text: #2e2e2e;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  scroll-behavior: smooth;
}

/* HEADER / NAVBAR */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 242, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.nav {
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.01em;
}

nav {
  display: flex;
  gap: 0.7rem;
}

nav a {
  text-decoration: none;
  color: #273036;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

nav a:hover {
  background: rgba(20, 54, 66, 0.06);
}

/* BOTONES */

.btn-primary {
  background: var(--dark);
  color: #fff;
  border: none;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.95rem;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(20, 54, 66, 0.15);
  background: #102a33;
}

.btn-secondary {
  background: #fff;
  color: var(--dark);
  border: 1px solid rgba(20, 54, 66, 0.15);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  transition: transform 0.15s ease, background 0.15s ease;
  font-size: 0.9rem;
}

.btn-secondary:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.85);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* HERO */

.hero {
  position: relative;
  min-height: 100vh;
  /* ocupa el alto de toda la pantalla */
  padding: 0 1rem;
  display: flex;
  align-items: center;
  /* centra vertical */
  justify-content: center;
  /* centra horizontal (luego lo ajustamos) */
  background-image: url('hero.svg');
  background-size: cover;
  /* que cubra toda la pantalla */
  background-position: center;
  /* centrada */
  background-repeat: no-repeat;
}

.hero-left {
  position: relative;
  z-index: 1;
  max-width: 700px;
  color: #F0F8FF;
}

.hero-left h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  color: #F0F8FF;
  margin-bottom: 1rem;
}

.hero-text {
  font-size: 1rem;
  max-width: 540px;
  color: #F5FFFA;
  margin-bottom: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(210, 167, 108, 0.18);
  border: 1px solid rgba(210, 167, 108, 0.7);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  color: #fef3c7;
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(0, 0, 0, 0.55),
      rgba(0, 0, 0, 0.25),
      rgba(0, 0, 0, 0.15));
}


/* SECCIONES GENERALES */

.section-title {
  font-size: 1.9rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.section-title.center {
  text-align: center;
}

.section-subtitle {
  font-size: 0.98rem;
  color: #4a5565;
  max-width: 650px;
  margin-bottom: 1.5rem;
}

.section-subtitle.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

#servicios {
  margin-top: 3rem;
  /* o el valor que te guste */
}

#reseñas {
  align-items: center;
  justify-content: center;
  text-align: center;
}

#reseñas a {
  margin-top: 3rem;
}

/* CARDS SERVICIOS */

.cards-horizontal {
  max-width: 1150px;
  margin: 2.5rem auto 0;
  padding: 0 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.service-card {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 2.2rem;
  border-radius: 28px;
  background: #fdf7d9;
  /* beige clarito tipo screenshot */
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.service-card.invert {
  flex-direction: row-reverse;
}

.card-image {
  flex: 1;
}

.card-image img {
  width: 100%;
  display: block;
  border-radius: 22px;
  object-fit: cover;
  max-height: 260px;
}

.card-content {
  flex: 1;
}

.card-title {
  font-size: 1.7rem;
  color: var(--dark);
  margin-bottom: 0.9rem;
}

.card-text {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #3e4b63;
  margin-bottom: 1.3rem;
}

/* TESTIMONIOS */

.testimonials {
  padding: 3rem 1rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(20, 54, 66, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
  position: relative;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #e8c896);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  flex-shrink: 0;
  text-transform: uppercase;
}

.author-info {
  flex: 1;
  min-width: 0;
}

.author-info h4 {
  margin: 0 0 0.3rem 0;
  font-size: 1.05rem;
  color: var(--dark);
  font-weight: 600;
}

.rating {
  display: flex;
  gap: 0.15rem;
  font-size: 1rem;
  color: #fbbf24;
  margin-bottom: 0.2rem;
}

.testimonial-role {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
}

.google-badge {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #5f6368;
  background: #f8f9fa;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #e8eaed;
}

.google-badge img {
  width: 12px;
  height: 12px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: #4a5565;
  line-height: 1.7;
  margin: 0 0 1rem 0;
  font-style: italic;
  position: relative;
  padding-left: 1.2rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonial-card.expanded .testimonial-text {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  display: block;
}

.testimonial-text::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -0.2rem;
  font-size: 2.5rem;
  color: var(--accent);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

.read-more-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  transition: color 0.2s;
  align-self: flex-start;
  margin-top: auto;
}

.read-more-btn:hover {
  text-decoration: underline;
  color: var(--dark);
}

/* CONTACTO */

.contact {
  max-width: 1150px;
  margin: 0 auto 3rem;
  padding: 0 1rem 3rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(20, 54, 66, 0.06);
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #f9fafb;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(210, 167, 108, 0.15);
  background: #fff;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form .btn-full {
  margin-top: 0.5rem;
}

.success-message {
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  padding: 3rem 2rem;
  border-radius: 24px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(20, 54, 66, 0.06);
  text-align: center;
}

.success-message h3 {
  color: var(--dark);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.success-message p {
  color: #4a5565;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.success-message .countdown-text {
  font-size: 0.9rem;
  color: #888;
  margin-top: 2rem;
}

.bloque {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem;
  margin-top: 2rem;
}

.map-wrapper iframe {
  width: 100%;
  border-radius: 22px;
  min-height: 320px;
}

/* FOOTER */

footer {
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.2rem 1rem;
  background: #f9fafb;
}

.footer-inner {
  max-width: 1150px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0rem;
  font-size: 0.85rem;
  color: purple;
  text-align: center;
}

.footer-logo {
  height: 100px;
  width: auto;
  display: block;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.footer-links a {
  color: #374151;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ANIMACIÓN SCROLL REVEAL */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ESTILOS PÁGINAS INTERNAS */
.page-content {
  padding: 4rem 1rem;
  max-width: 900px;
  margin: 0 auto;
  min-height: 60vh;
}

.page-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #4a5565;
  margin-bottom: 2rem;
  text-align: center;
}

.cta-box {
  background: #fdf7d9;
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  margin-top: 3rem;
  border: 1px solid rgba(210, 167, 108, 0.2);
}

.cta-box h3 {
  color: var(--dark);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.cta-box p {
  margin-bottom: 1.5rem;
  color: #555;
}

/* RESPONSIVE */

/* ===== Ajustes para móvil ===== */
/* ===== Ajustes para móvil ===== */
@media (max-width: 768px) {

  /* CABECERA / NAV */
  header {
    padding: 0.5rem 1rem;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  /* Ocultar el texto del logo en móvil para ahorrar espacio */
  .logo {
    display: none !important;
  }

  .nav>a img {
    max-height: 40px;
    width: auto;
  }

  nav {
    display: flex;
    gap: 0.8rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* HERO */
  .hero {
    min-height: calc(100vh - 120px);
    padding: 2rem 1rem;
    background-position: center top;
    background-attachment: scroll;
    flex-direction: column;
    text-align: center;
  }

  .hero-left h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-text {
    font-size: 0.95rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  /* CARDS SERVICIOS */
  .service-card,
  .service-card.invert {
    flex-direction: column;
    padding: 1.6rem;
  }

  .card-image img {
    max-height: none;
  }

  /* TESTIMONIOS */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* CONTACTO */
  
    .contact {
        padding: 0 15px;
    }
    
    .bloque {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-form,
    .success-message {
        max-width: 100%;
        padding: 22px;
        border-radius: 16px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 15px;
        padding: 12px 14px;
    }

    .contact-form label {
        font-size: 14px;
    }

    .contact-form .btn-primary {
        padding: 12px;
        font-size: 16px;
    }

    /* Títulos más grandes y centrados en móvil */
    .section-title {
        font-size: 26px !important;
        text-align: center;
    }

    .section-subtitle {
        font-size: 15px !important;
        margin-bottom: 20px;
        text-align: center;
    }

}