/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Merriweather', serif;
  color: #4B2E2E;
  background: #FFFDFE;
}

/* Header */
header {
  background: linear-gradient(135deg, #FFFFFF 0%, #FADADD 50%, #E79AB5 100%);
  border-bottom: 2px solid #E79AB5;
  padding: 15px 30px;
  position: fixed;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(231, 154, 181, 0.2);
}

.container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 55px;
  transition: transform 0.3s ease;
  border-radius: 50%;
  background: linear-gradient(135deg, #FADADD 0%, #E79AB5 100%);
  padding: 3px;
  box-shadow: 0 2px 8px rgba(217, 108, 159, 0.2);
}

.logo-img:hover {
  transform: scale(1.1);
}

.logo-text {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #D96C9F 0%, #E79AB5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}

/* NAV */
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  font-family: 'Quicksand', sans-serif;
}

.nav-links a {
  color: #4B2E2E;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding: 8px 15px;
  transition: all 0.3s ease;
  border-radius: 20px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #D96C9F, #E79AB5);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-links a:hover::after {
  width: 80%;
}

.nav-links a:hover {
  color: #D96C9F;
  background: rgba(247, 214, 224, 0.3);
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #4B2E2E;
}

/* SECCIONES CON DEGRADADOS */
section {
  padding: 80px 30px;
  margin: 10px auto;
  max-width: 1100px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  scroll-margin-top: 90px;
}

/* Hero - Rosa inicial suave */
.hero {
  text-align: center;
  background: linear-gradient(135deg, #F7D6E0 0%, #FCE4EC 50%, #FFF0F5 100%);
  border-radius: 0;
  max-width: 100%;
  padding-top: 140px;
  padding-bottom: 60px;
  margin: 0;
  box-shadow: none;
  scroll-margin-top: 80px;
}

.hero-logo {
  width: 170px;
  margin-bottom: 25px;
  animation: float 3s ease-in-out infinite;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, #FADADD 0%, #E79AB5 100%);
  box-shadow: 0 4px 15px rgba(217, 108, 159, 0.3);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero h1 {
  font-family: 'Quicksand', sans-serif;
  font-size: 2.2rem;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #D96C9F 0%, #E79AB5 50%, #F7D6E0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* Sección ¿Quién soy? */
#quien-soy {
  background: linear-gradient(180deg, #FFF5F7 0%, #FADADD 100%);
}

/* Sección Corrección Ortotipográfica */
#correccion-ortotipografica {
  background: linear-gradient(135deg, #FADADD 0%, #FFF0F5 100%);
}

/* Sección Corrección de Estilo */
#correccion-estilo {
  background: linear-gradient(180deg, #FFF0F5 0%, #F7D6E0 100%);
}

/* Sección Servicios */
#servicios {
  background: linear-gradient(135deg, #FADADD 0%, #FFF0F5 100%);
}

/* Sección Correcciones */
#correcciones {
  background: linear-gradient(180deg, #FFF8FA 0%, #F7D6E0 100%);
}

/* Sección Contacto */
#contacto {
  background: linear-gradient(135deg, #E79AB5 0%, #F7D6E0 50%, #FFF5F7 100%);
  border-radius: 20px;
  margin-bottom: 30px;
  text-align: center;
}

/* Estilos comunes de secciones */
.seccion {
  padding: 60px 40px;
}

h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 25px;
  text-align: center;
  position: relative;
  display: inline-block;
  width: 100%;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #D96C9F, #E79AB5);
  margin: 10px auto 0;
  border-radius: 2px;
}

.separador {
  margin-top: 50px;
  margin-bottom: 45px;
}

p {
  margin-bottom: 15px;
  line-height: 1.7;
}

.seccion ul {
  margin: 15px 0 25px;
  padding-left: 25px;
}

.seccion li {
  margin-bottom: 10px;
  line-height: 1.6;
  position: relative;
}

.seccion li::before {
  content: '✿';
  color: #D96C9F;
  position: absolute;
  left: -20px;
  font-size: 0.8rem;
}

.sangria {
  padding-left: 25px;
  margin-bottom: 15px;
}

/* Botón primario */
.btn-primary {
  background: linear-gradient(135deg, #D96C9F 0%, #E79AB5 100%);
  color: #fff;
  padding: 14px 30px;
  text-decoration: none;
  border-radius: 50px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  display: inline-block;
  margin-top: 20px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(217, 108, 159, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 108, 159, 0.4);
}

/* Imágenes tutorial */
.img-tutorial {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 20px auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 2px solid #E79AB5;
}

/* Botón icono de sobre */
.btn-form-icon {
  background: linear-gradient(135deg, #D96C9F 0%, #E79AB5 100%);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-left: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(217, 108, 159, 0.3);
}

.btn-form-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(217, 108, 159, 0.4);
}

/* SCROLL PROGRESS */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #D96C9F, #E79AB5);
  width: 0%;
  z-index: 1001;
  transition: width 0.1s ease;
}

/* Footer */
footer {
  padding: 40px 30px;
  background: linear-gradient(135deg, #FFF5F7 0%, #FADADD 50%, #FFFFFF 100%);
  border-top: 2px solid #E79AB5;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-img {
  width: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FADADD 0%, #E79AB5 100%);
  padding: 3px;
  box-shadow: 0 2px 8px rgba(217, 108, 159, 0.2);
}

.footer-logo-text {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #D96C9F 0%, #E79AB5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-redes {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #4B2E2E;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 25px;
  background: rgba(247, 214, 224, 0.3);
  transition: all 0.3s ease;
}

.footer-link:hover {
  background: rgba(217, 108, 159, 0.2);
  transform: translateY(-2px);
}

.footer-icon {
  font-size: 1.2rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: #4B2E2E;
  opacity: 0.8;
}

/* BOTÓN VOLVER ARRIBA */
.btn-volver-arriba {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background: linear-gradient(135deg, #D96C9F 0%, #E79AB5 100%);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(217, 108, 159, 0.3);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.btn-volver-arriba.visible {
  opacity: 1;
  visibility: visible;
}

.btn-volver-arriba:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(217, 108, 159, 0.4);
}

/* BOTÓN FLOTANTE */
.boton-flotante {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #D96C9F 0%, #E79AB5 100%);
  color: #fff;
  border: none;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(217, 108, 159, 0.4);
  z-index: 1500;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.boton-flotante:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(217, 108, 159, 0.5);
}

/* OVERLAY */
.form-overlay {
  position: fixed;
  inset: 0;
  background: rgba(75, 46, 46, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
}

/* FORMULARIO */
.formulario {
  background: linear-gradient(135deg, #FFFDFE 0%, #FFF5F7 100%);
  padding: 35px;
  border-radius: 25px;
  width: 90%;
  max-width: 450px;
  position: relative;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(30px);
  opacity: 0;
}

.formulario h3 {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
  color: #D96C9F;
}

/* INPUTS */
.formulario input,
.formulario select,
.formulario textarea {
  width: 100%;
  margin-bottom: 15px;
  padding: 12px 15px;
  border-radius: 12px;
  border: 2px solid #E79AB5;
  font-family: 'Merriweather', serif;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: #FFF;
}

.formulario input:focus,
.formulario select:focus,
.formulario textarea:focus {
  outline: none;
  border-color: #D96C9F;
  box-shadow: 0 0 10px rgba(217, 108, 159, 0.2);
}

.formulario textarea {
  resize: none;
  height: 120px;
}

.formulario select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23D96C9F' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}

/* CERRAR */
.cerrar {
  position: absolute;
  top: 12px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #D96C9F;
  transition: color 0.3s ease;
  line-height: 1;
}

.cerrar:hover {
  color: #4B2E2E;
}

/* ANIMACIÓN */
.animar.activo {
  animation: aparecer 0.4s ease forwards;
}

@keyframes aparecer {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.mensaje-exito {
  display: none;
  text-align: center;
  margin-top: 15px;
  color: #4B2E2E;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  background: linear-gradient(135deg, #FADADD 0%, #FFF5F7 100%);
  padding: 15px;
  border-radius: 12px;
}

/* =============================================
   RESPONSIVE - TABLETS (768px - 1024px)
   ============================================= */
@media (min-width: 769px) and (max-width: 1024px) {
  section {
    padding: 60px 25px;
    margin: 15px;
  }

  .seccion {
    padding: 50px 30px;
  }

  h2 {
    font-size: 1.6rem;
  }

  .hero h1 {
    font-size: 1.9rem;
  }
}

/* =============================================
   RESPONSIVE - MÓVILES (< 768px)
   ============================================= */
@media (max-width: 768px) {
  header {
    padding: 12px 15px;
  }

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

  .logo-img {
    width: 45px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 15px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF5F7 100%);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #E79AB5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    gap: 10px;
    min-width: 200px;
    max-height: 80vh;
    overflow-y: auto;
  }

  .nav-links.active {
    display: flex;
    animation: slideDown 0.3s ease;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links li {
    text-align: center;
  }

  .nav-links a::after {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding-top: 120px;
    padding-bottom: 40px;
  }

  .hero-logo {
    width: 130px;
  }

  .hero h1 {
    font-size: 1.5rem;
    padding: 0 15px;
  }

  .hero p {
    font-size: 1rem;
    padding: 0 20px;
  }

  section {
    padding: 40px 20px;
    margin: 10px;
    border-radius: 15px;
  }

  .seccion {
    padding: 40px 20px;
  }

  h2 {
    font-size: 1.4rem;
  }

  p {
    font-size: 0.95rem;
  }

  .seccion ul {
    padding-left: 20px;
  }

  .seccion li {
    font-size: 0.9rem;
  }

  .btn-primary {
    padding: 12px 25px;
    font-size: 0.9rem;
  }

  .boton-flotante {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 1.3rem;
  }

  .formulario {
    padding: 25px 20px;
    margin: 15px;
  }

  .formulario input,
  .formulario select,
  .formulario textarea {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  footer {
    padding: 20px 15px;
    font-size: 0.85rem;
  }

  .footer-redes {
    flex-direction: column;
    gap: 15px;
  }

  .btn-volver-arriba {
    bottom: 80px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

/* =============================================
   RESPONSIVE - MÓVILES PEQUEÑOS (< 480px)
   ============================================= */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.3rem;
  }

  .hero-logo {
    width: 110px;
  }

  h2 {
    font-size: 1.2rem;
  }

  .logo-text {
    font-size: 0.9rem;
  }

  section {
    padding: 30px 15px;
    margin: 8px;
  }

  .formulario {
    padding: 20px 15px;
  }

  .boton-flotante {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    bottom: 15px;
    right: 15px;
  }

  .btn-volver-arriba {
    bottom: 75px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .footer-logo-text {
    font-size: 1.1rem;
  }

  .footer-link {
    padding: 8px 15px;
    font-size: 0.85rem;
  }
}

/* =============================================
   ANIMACIONES GLOBALES
   ============================================= */
@media (prefers-reduced-motion: no-preference) {
  section {
    animation: fadeInUp 0.6s ease;
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}