/* ==========================================================================
   DISEÑO SISTEMA DE YOTEORIENTO - SOLUCIONES CONTABLES
   ========================================================================== */

/* Importación de Fuentes Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
  /* Paleta de Colores Corporativa */
  --primary: #0A5F38;          /* Verde bosque del logo */
  --primary-dark: #053D22;     /* Verde muy oscuro para contrastes y textos */
  --primary-light: #E8F5EE;    /* Fondo verde muy suave */
  --secondary: #10854E;        /* Verde más vibrante para llamados secundarios */
  --accent: #E9C46A;           /* Oro/Dorado para botones principales (CTA) y acentos */
  --accent-hover: #DFB23C;     /* Oro hover */
  --mint: #CBEFED;             /* Menta claro del imagotipo */
  --mint-dark: #1F7A75;        /* Menta oscuro */
  --dark: #111B15;             /* Casi negro con matiz verde para fondo oscuro */
  --text: #2C3E35;             /* Texto principal con tono verde apagado */
  --text-muted: #627A6F;       /* Texto secundario/desactivado */
  --light: #F4FAF7;            /* Fondo general muy limpio */
  --white: #FFFFFF;
  --error: #E63946;
  --success: #2A9D8F;

  /* Tipografías */
  --font-sans: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;

  /* Sombras Modernas (Soft Shadows) */
  --shadow-sm: 0 2px 8px rgba(10, 95, 56, 0.05);
  --shadow-md: 0 10px 30px rgba(10, 95, 56, 0.08);
  --shadow-lg: 0 20px 50px rgba(10, 95, 56, 0.15);
  --shadow-accent: 0 10px 25px rgba(233, 196, 106, 0.3);

  /* Transiciones */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* Bordes */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 30px;
  --radius-full: 9999px;

  /* Espaciado del Header Fijo */
  --header-height: 80px;
}

/* Reset de Estilos Básicos */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--light);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Contenedor Común */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Tipografía y Títulos */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: 2.8rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

p {
  margin-bottom: 16px;
  color: var(--text);
  font-weight: 400;
}

/* Clases de Utilidad */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-mint { color: var(--mint); }
.bg-dark { background-color: var(--dark); color: var(--white); }
.bg-primary-light { background-color: var(--primary-light); }

/* Botones Premium */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--primary-dark);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(233, 196, 106, 0.45);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* ==========================================================================
   1. CABECERA (HEADER & NAV)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

/* Header con Scroll (Sticky con Glassmorphism) */
.header-scrolled {
  background-color: rgba(7, 44, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  height: 70px;
}

.header-scrolled .logo-container img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-container img {
  height: 55px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  transition: var(--transition);
}

/* Menú de Navegación */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 8px 0;
  transition: var(--transition);
  opacity: 0.85;
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
  color: var(--accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Botón Hamburguesa Móvil */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--white);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: var(--radius-full);
}

/* ==========================================================================
   2. HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 40px) 0 80px 0;
  background: radial-gradient(circle at 10% 20%, var(--primary-dark) 0%, var(--primary) 70%, #052a18 100%);
  color: var(--white);
  overflow: hidden;
}

/* Elemento decorativo flotante (background animation) */
.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(203, 239, 237, 0.1) 0%, rgba(203, 239, 237, 0) 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
  animation: float-slow 15s infinite alternate ease-in-out;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(203, 239, 237, 0.15);
  border: 1px solid rgba(203, 239, 237, 0.3);
  color: var(--mint);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
  animation: fadeInUp 0.8s ease forwards;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--accent);
}

.hero-title {
  font-family: var(--font-sans);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 24px;
  animation: fadeInUp 1s ease 0.1s forwards;
  opacity: 0;
}

.hero-description {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  max-width: 600px;
  animation: fadeInUp 1s ease 0.2s forwards;
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.3s forwards;
  opacity: 0;
}

/* Hero Feature Cards (Mini estadísticas o ventajas) */
.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
  animation: fadeInUp 1s ease 0.4s forwards;
  opacity: 0;
}

.hero-feature-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.hero-feature-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.15);
}

.hero-feature-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1.1;
  margin-bottom: 4px;
}

.hero-feature-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Card Visual en Hero */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  animation: fadeInRight 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) 0.2s forwards;
  opacity: 0;
}

.hero-card-container {
  position: relative;
  width: 100%;
  max-width: 450px;
}

.hero-main-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255, 255, 255, 0.1);
}

/* Tarjeta flotante interactiva */
.hero-floating-card {
  position: absolute;
  bottom: -30px;
  left: -30px;
  background: var(--white);
  color: var(--primary-dark);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 280px;
  border-left: 5px solid var(--primary);
  animation: float-vertical 4s infinite ease-in-out;
}

.floating-icon-wrapper {
  background-color: var(--primary-light);
  color: var(--primary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.floating-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--primary-dark);
}

.floating-card-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   3. SECCIÓN SERVICIOS
   ========================================================================== */
.section {
  padding: 100px 0;
  position: relative;
}

.section-tagline {
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: block;
}

.section-title-wrapper {
  margin-bottom: 60px;
  max-width: 700px;
}

.section-title-wrapper.text-center {
  margin-left: auto;
  margin-right: auto;
}

.section-title-wrapper h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background-color: var(--primary);
  bottom: -8px;
  left: 0;
  border-radius: var(--radius-full);
}

.section-title-wrapper.text-center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.service-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-slow);
  border: 1px solid rgba(10, 95, 56, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(10, 95, 56, 0.1);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 64px;
  height: 64px;
  background-color: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--primary);
  margin-bottom: 24px;
  transition: var(--transition);
}

.service-card:hover .service-icon-box {
  background-color: var(--primary);
  color: var(--white);
  transform: scale(1.05) rotate(5deg);
}

.service-card h3 {
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 16px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  margin-bottom: 28px;
}

.service-features li {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-features li::before {
  content: '✓';
  color: var(--secondary);
  font-weight: 700;
}

.service-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  margin-top: auto;
}

.service-link span {
  transition: var(--transition);
}

.service-card:hover .service-link {
  color: var(--secondary);
}

.service-card:hover .service-link span {
  transform: translateX(4px);
}

/* ==========================================================================
   4. PROPUESTA DE VALOR / POR QUÉ ELEGIRNOS
   ========================================================================== */
.why-us-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.why-us-image-wrapper {
  position: relative;
}

.why-us-main-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}

.why-us-floating-banner {
  position: absolute;
  top: -30px;
  right: -20px;
  background: var(--primary);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-width: 200px;
  text-align: center;
}

.why-us-floating-banner .num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}

.why-us-floating-banner .txt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.benefit-list {
  list-style: none;
  margin: 32px 0;
}

.benefit-item {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.benefit-icon-wrapper {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
}

.benefit-content h4 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.benefit-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ==========================================================================
   5. CTA BANNER
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: var(--radius-md);
  padding: 60px 48px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: radial-gradient(circle at 80% 50%, rgba(203, 239, 237, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.cta-title {
  color: var(--white);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  margin-bottom: 0;
  max-width: 600px;
}

.cta-actions {
  display: flex;
  justify-content: flex-end;
}

/* ==========================================================================
   6. PREGUNTAS FRECUENTES (FAQ)
   ========================================================================== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10, 95, 56, 0.05);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(10, 95, 56, 0.15);
}

.faq-header {
  padding: 24px;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-header h3 {
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 0;
  transition: var(--transition);
  font-weight: 600;
}

summary.faq-header::-webkit-details-marker {
  display: none;
}
summary.faq-header {
  list-style: none;
  outline: none;
}

.faq-icon {
  width: 28px;
  height: 28px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  transition: var(--transition);
  flex-shrink: 0;
}

.faq-icon::before {
  content: '+';
  line-height: 1;
}

.faq-item.active,
details.faq-item[open] {
  box-shadow: var(--shadow-md);
  border-color: rgba(10, 95, 56, 0.15);
}

.faq-item.active .faq-header h3,
details.faq-item[open] .faq-header h3 {
  color: var(--secondary);
}

.faq-item.active .faq-icon,
details.faq-item[open] .faq-icon {
  background-color: var(--primary);
  color: var(--white);
}

.faq-item.active .faq-icon::before,
details.faq-item[open] .faq-icon::before {
  content: '-';
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq-item.active .faq-content {
  max-height: 200px;
}

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

details.faq-item[open] .faq-content {
  max-height: none;
  overflow: visible;
  animation: faqSlideDown 0.35s ease-out forwards;
}

.faq-body {
  padding: 0 24px 24px 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(10, 95, 56, 0.05);
  padding-top: 16px;
}

/* ==========================================================================
   7. FORMULARIO DE CONTACTO
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
}

.contact-info-card {
  background-color: var(--primary-dark);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  bottom: -50px;
  right: -50px;
}

.contact-info-card h3 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.contact-info-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.info-details {
  list-style: none;
  margin-bottom: 40px;
}

.info-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-link {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  width: 100%;
}

.contact-info-link:hover {
  transform: translateX(5px);
}

.contact-info-link:hover .info-icon {
  transform: scale(1.1);
}

.info-icon {
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
}

.info-detail-text h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.info-detail-text p {
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 0;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link-btn {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-link-btn:hover {
  background-color: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

/* Tarjeta del Formulario */
.contact-form-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10, 95, 56, 0.05);
}

.form-title {
  margin-bottom: 32px;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(10, 95, 56, 0.15);
  background-color: var(--light);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(10, 95, 56, 0.08);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.form-alert {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  display: none;
}

.form-alert-success {
  background-color: #D4EDDA;
  color: #155724;
  border: 1px solid #C3E6CB;
}

.form-alert-error {
  background-color: #F8D7DA;
  color: #721C24;
  border: 1px solid #F5C6CB;
}

/* ==========================================================================
   8. PIE DE PÁGINA (FOOTER)
   ========================================================================== */
.footer {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 80px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-logo {
  margin-bottom: 24px;
}

.footer-logo img {
  height: 60px;
  width: 236px;
  max-width: 100%;
  object-fit: contain;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.footer-title {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--white);
}

/* ==========================================================================
   9. BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
  z-index: 999;
  text-decoration: none;
  font-size: 1.8rem;
  transition: var(--transition-slow);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

/* Círculo pulsante animado */
.whatsapp-float::before {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: var(--radius-full);
  border: 2px dashed #25d366;
  opacity: 0;
  animation: whatsapp-pulse 2s infinite ease-out;
  pointer-events: none;
}

@keyframes whatsapp-pulse {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* Icono SVG de Whatsapp integrado en css */
.whatsapp-icon {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* ==========================================================================
   ANIMACIONES GENERALES
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float-slow {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 30px); }
  100% { transform: translate(30px, -30px); }
}

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

/* ==========================================================================
   EFECTO DE APARICIÓN AL HACER SCROLL (SCROLL ANIMATIONS)
   ========================================================================== */
.reveal {
  position: relative;
  transform: translateY(50px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Escritorio Pequeño / Tablets Grandes */
@media (max-width: 1024px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }
  
  .hero { min-height: auto; padding-top: 140px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; } /* Subimos la foto arriba del texto en tablets */
  .hero-card-container { max-width: 380px; }

  .why-us-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-us-image-wrapper { max-width: 500px; margin: 0 auto; }
  
  .cta-grid { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .cta-actions { justify-content: center; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* Tablets / Móviles Grandes */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  h1 { font-size: 2.1rem; }
  .hero-title { font-size: 2.2rem; }
  .hero-description { font-size: 1rem; }

  /* Menú Móvil Hamburguesa */
  .hamburger {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--primary-dark);
    flex-direction: column;
    justify-content: flex-start;
    padding: 48px 24px;
    gap: 24px;
    transition: var(--transition-slow);
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    font-size: 1.2rem;
    color: var(--white);
    opacity: 0.9;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -7px);
  }

  .hero-features { grid-template-columns: 1fr; gap: 12px; }
  
  .form-group-row { grid-template-columns: 1fr; gap: 0; }
  
  .contact-form-card { padding: 32px 24px; }
  .contact-info-card { padding: 32px 24px; }
  
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 1.5rem;
  }
}

/* Móviles Pequeños */
@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .hero-floating-card { display: none; } /* Ocultamos la tarjeta flotante en celulares muy pequeños */
  
  .section { padding: 60px 0; }
  
  .cta-banner { padding: 40px 24px; }
  .cta-title { font-size: 1.6rem; }
}
