/* styles.css - versión completa para index.html */

/* ==========================
   Variables y base
   ========================== */
:root {
  --primary-color: #214c86;   /* azul corporativo */
  --secondary-color: #64aa90; /* verde corporativo */
  --text-color: #2f2f2f;
  --muted-color: #6b6b6b;
  --light-bg: #f4f4f4;
  --white: #fff;
  --kanit-font: 'Kanit', sans-serif;
  --max-width: 1100px;
  --transition-fast: 0.25s;
  --transition-med: 0.4s;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--kanit-font);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  background: #fff;
  overflow-x: hidden;
  padding-top: 80px; /* Compensar el header fijo */
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Accessibility focus */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid rgba(33,76,134,0.18);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ==========================
   Header & Navigation
   ========================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  backdrop-filter: none;
  z-index: 1200;
  box-shadow: none;
  transition: padding var(--transition-med), background var(--transition-med), box-shadow var(--transition-med);
  padding: 0.9rem 0;
}

header.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(4px);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo img {
  height: 56px;
  width: auto;
}

/* Control de visibilidad de logos */
.logo-transparent {
  display: block;
}

.logo-scrolled {
  display: none;
}

/* Cuando el header está scrolled, mostrar logo diferente */
header.scrolled .logo-transparent {
  display: none;
}

header.scrolled .logo-scrolled {
  display: block;
}

/* Desktop nav */
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

nav ul li a {
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.25rem 0.4rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

nav ul li a:hover,
nav ul li a:focus {
  color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

/* Estilos cuando el header está scrolled */
header.scrolled nav ul li a {
  color: var(--primary-color);
}

header.scrolled nav ul li a:hover,
header.scrolled nav ul li a:focus {
  color: var(--secondary-color);
}

/* Burger (mobile) */
.burger {
  display: none;
  width: 44px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  border: none;
  gap: 4px;
}

.burger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: transform .25s ease, opacity .25s ease;
}

/* Estilos cuando el header está scrolled */
header.scrolled .burger span {
  background: var(--primary-color);
}

/* ==========================
   Sidebar / Offcanvas menu (from right)
   ========================== */
.sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  height: 100vh;
  width: 85%;
  max-width: 420px;
  background: var(--white);
  z-index: 2000;
  padding: 2.25rem 1.75rem;
  box-shadow: -10px 0 30px rgba(33,76,134,0.08);
  transition: right .45s cubic-bezier(.2,.9,.2,1);
  display: flex;
  flex-direction: column;
}

.sidebar.active { right: 0; }

.sidebar .close-btn {
  background: transparent;
  border: 0;
  font-size: 2.1rem;
  color: var(--muted-color);
  cursor: pointer;
  align-self: flex-end;
}

.sidebar ul {
  list-style: none;
  padding: 2rem 0 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.0rem;
}

.sidebar ul li a {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary-color);
  text-decoration: none;
}

/* Dim backdrop for sidebar */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8,10,15,0.35);
  z-index: 1800;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================
   Hero (Video + CTA)
   ========================== */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  margin-top: -80px; /* Compensar el padding del body */
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-fallback {
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1504384308090-c894fdcc538d?q=80&w=1740&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D")
              center/cover no-repeat;
  z-index: -2;
  animation: kenburns 10s ease-in-out infinite alternate;
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}


/* text layer */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 1rem;
  margin-top: 10rem;

}

.hero-content h1 {
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  font-weight: 200;
  margin: 0 0 0.6rem 0;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.hero-content p {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  margin: 0;
  color: rgba(255,255,255,0.95);
  font-weight: 400;
}

.cta-group {
  margin-top: 1.75rem;
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  background: var(--secondary-color);
  color: var(--white);
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  text-decoration: none;
}

.cta-button:hover,
.cta-button:focus {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(100,170,144,0.16);
  background: var(--primary-color);
}

.cta-button.secondary {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.95);
  color: rgba(255,255,255,0.98);
}

/* kenburns animation */
@keyframes kenburns {
  0% { transform: scale(1) translate(0,0); }
  100% { transform: scale(1.12) translate(-3%, -3%); }
}

/* ==========================
   Sections general
   ========================== */
section {
  padding: 4.25rem 0;
}

.alt-bg {
  background: var(--light-bg);
  overflow: visible;
}

/* Titles */
h2, h3 {
  margin: 0 0 1rem 0;
}

h2 {
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--primary-color);
}

/* ==========================
   About - Restructured Design
   ========================== */

/* Header centrado */
.about-header {
  text-align: center;
  margin-bottom: 3rem;
}

.about-intro { 
  color: var(--muted-color); 
  font-size: 1.4rem; 
  margin: 1rem 0 0 0; 
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Contenido principal */
.about-content {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  margin-bottom: 3rem;
}

/* Contenedor de imagen con bisel */
.about-image-container {
  flex: 0 0 45%;
  position: relative;
}

.about-image {
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(33, 76, 134, 0.15);
  transition: all 0.3s ease;
}

.about-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(33, 76, 134, 0.2);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

/* Contenido lateral */
.about-side-content {
  flex: 0 0 55%;
  padding: 1rem 0;
}

.gabel-logo {
  margin: 0 0 2rem 0;
  text-align: left;
}

.gabel-logo img {
  height: 60px;
  width: auto;
  max-width: 200px;
}

.key-point {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  border-left: 4px solid var(--secondary-color);
  transition: all 0.3s ease;
}

.key-point:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(33, 76, 134, 0.1);
}

.key-icon {
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.key-icon i {
  font-size: 1.5rem;
  color: var(--secondary-color);
  background: rgba(100, 170, 144, 0.1);
  padding: 0.8rem;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.key-point:hover .key-icon i {
  background: var(--secondary-color);
  color: var(--white);
  transform: scale(1.1);
}

.key-content h4 {
  color: var(--primary-color);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 0.3rem 0;
}

.key-content p {
  color: var(--muted-color);
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.4;
}

/* Stats Compact - ahora con 5 elementos */
.stats-compact {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1rem 0.5rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  border: 1px solid rgba(100, 170, 144, 0.2);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(33, 76, 134, 0.1);
  border-color: var(--secondary-color);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.3rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.stat-prefix,
.stat-suffix {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color);
  transition: all 0.3s ease;
}

.stat-numeric {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--secondary-color);
  transition: all 0.3s ease;
}

.stat-item:hover .stat-number {
  transform: scale(1.1);
  color: var(--primary-color);
}

.stat-item:hover .stat-prefix,
.stat-item:hover .stat-suffix,
.stat-item:hover .stat-numeric {
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================
   Impact (icons)
   ========================== */
#impact {
  background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(25, 66, 128, 0.25)),
              url("../images/familia.jpg?q=80&w=774&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D")
              center/cover no-repeat;
  background-size: 120% auto;
  background-attachment: fixed;
  color: #fff;
  text-align: center;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}


.impact-content { max-width: 980px; margin: 0 auto; }
.impact-content h2 {
  color: #fff;
  margin-bottom: 2rem;
}
.impact-content h3 {
  font-size: 1.6rem;
  font-weight: 300;
  margin-bottom: 2.6rem;
}
.impact-content p { color: rgba(255,255,255,0.9); font-size:1rem; margin-bottom:1.2rem; }

.impact-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.impact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.impact-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(100, 170, 144, 0.1), rgba(33, 76, 134, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.impact-item:hover::before {
  opacity: 1;
}

.impact-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(100, 170, 144, 0.4);
}

.impact-icon-wrapper {
  position: relative;
  z-index: 2;
  margin-bottom: 1rem;
}

.impact-icon-wrapper i {
  font-size: 2.5rem;
  color: #A84252;
  background: rgba(255, 255, 255, 0.15);
  padding: 1rem;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.impact-item:hover .impact-icon-wrapper i {
  transform: scale(1.1);
  background: rgba(100, 170, 144, 0.2);
  color: var(--white);
}

.impact-item h4 {
  position: relative;
  z-index: 2;
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.5px;
}

.impact-item p {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.4;
}

/* ==========================
   Services - Desktop Grid
   ========================== */
#services { 
  background: #4a7c6b; /* Verde más oscuro */
  position: relative;
  overflow: hidden;
}

#services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  background-size: 200px 200px, 300px 300px, 250px 250px, 180px 180px;
  background-position: 0 0, 100px 100px, 50px 150px, 150px 50px;
  animation: patternMove 20s linear infinite;
  z-index: 1;
}

@keyframes patternMove {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-50px, -25px); }
  50% { transform: translate(-25px, -50px); }
  75% { transform: translate(25px, -25px); }
  100% { transform: translate(0, 0); }
}

#services .container {
  position: relative;
  z-index: 2;
}

#services h2 {
  color: var(--white);
  text-align: center;
  margin-bottom: 3rem;
}

.services-grid-desktop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.service-item {
  background: rgba(255, 255, 255);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Imagen a sangre en la parte superior */
.service-image-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.service-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 0;
}

/* Contenido del servicio */
.service-content {
  padding: 1.5rem;
  text-align: left;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-content h4 {
  color: var(--primary-color);
  margin: 0 0 0.8rem 0;
  font-weight: 600;
  font-size: 1.5rem;
  text-align: center;
  line-height: 1.2;
}

.service-intro {
  color: var(--text-color);
  font-size: 1rem;
  margin: 0 0 0.8rem 0;
  font-weight: 600;
  line-height: 1.4;
}

.service-description {
  color: var(--muted-color);
  font-size: 0.95rem;
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

.service-bullets {
  margin-top: auto;
}

.service-bullets p {
  color: var(--primary-color);
  font-size: 0.95rem;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.service-bullets ul {
  margin: 0;
  padding-left: 1.5rem;
  list-style-type: disc;
}

.service-bullets li {
  color: var(--muted-color);
  font-size: 0.9rem;
  margin: 0.3rem 0;
  line-height: 1.4;
}

/* hover */
.service-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 1);
}

/* ==========================
   Services - Mobile Accordion
   ========================== */
.services-accordion-mobile { display: none; }

.accordion { width: 100%; }
.accordion-item {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.9rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.accordion-button {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 1rem 1rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.02rem;
}
.accordion-button .icon {
  font-size: 1.3rem;
  color: var(--muted-color);
  display:inline-block;
  transform: rotate(0deg);
  transition: transform var(--transition-fast);
}
.accordion-item.active .icon {
  transform: rotate(0deg);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.36s ease;
  padding: 0 1rem 1rem 1rem;
  color: var(--muted-color);
  font-size: 0.98rem;
}

.accordion-content .service-intro {
  color: var(--text-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.accordion-content p {
  margin: 0.5rem 0;
}

/* ==========================
   Co-creamos contigo
   ========================== */
#co-create {
  padding: 5rem 0;
  background-image: url('../images/cocreamos.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

#co-create::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

#co-create .container {
  position: relative;
  z-index: 2;
}

.co-create-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.co-create-content h2 {
  color: var(--white);
  margin-bottom: 2rem;
}

.co-create-text {
  font-size: 1.2rem;
  color: var(--white);
  line-height: 1.6;
  margin: 1rem 0;
}

/* ==========================
   Diferencial - Redesigned
   ========================== */
#differential {
  background: linear-gradient(135deg, var(--light-bg) 0%, rgba(100, 170, 144, 0.05) 100%);
  position: relative;
  padding: 5rem 0;
}

.differential-header {
  text-align: center;
  margin-bottom: 4rem;
}

.differential-header p {
  color: var(--muted-color);
  font-size: 1.1rem;
  margin: 0.5rem 0 0 0;
  font-weight: 400;
}

.differential-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.differential-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(33, 76, 134, 0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid rgba(100, 170, 144, 0.1);
  cursor: pointer;
}

.differential-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(100, 170, 144, 0.05), rgba(33, 76, 134, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.differential-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(33, 76, 134, 0.15);
  border-color: var(--secondary-color);
}

.card-icon {
  position: relative;
  z-index: 2;
  margin-bottom: 1.5rem;
  text-align: center;
  transition: opacity 0.4s ease;
}

.card-icon i {
  font-size: 3rem;
  color: var(--secondary-color);
  background: linear-gradient(135deg, rgba(100, 170, 144, 0.1), rgba(33, 76, 134, 0.1));
  padding: 1.5rem;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.4s ease;
}

.differential-card:hover .card-icon i {
  transform: scale(1.1) rotate(360deg);
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: var(--white);
}

.card-content {
  position: relative;
  z-index: 2;
  text-align: center;
  transition: opacity 0.4s ease;
}

.card-content h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  transition: all 0.3s ease;
}

.card-content p {
  color: var(--muted-color);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  transition: all 0.3s ease;
}

/* Card Overlay Effect */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  opacity: 0;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 10;
}

.differential-card:hover .card-overlay {
  opacity: 1;
}

.differential-card:hover .card-content {
  opacity: 0;
}

.differential-card:hover .card-icon {
  opacity: 0;
}

.overlay-content {
  text-align: center;
  color: var(--white);
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.differential-card:hover .overlay-content {
  transform: translateY(0);
}

.overlay-content h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

.overlay-content p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  opacity: 0.9;
}

/* ==========================
   Benefits
   ========================== */
#benefits {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.benefits-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(33, 76, 134, 0.98) 0%, rgba(100, 170, 144, 0.95) 100%);
  z-index: 1;
}

.benefits-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
  z-index: 1;
}

#benefits .container {
  position: relative;
  z-index: 2;
}

#benefits h2 {
  color: var(--white);
  text-align: center;
  margin-bottom: 4rem;
}

/* Benefit Card - Formato alternado con imagen y texto */
.benefit-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  margin-bottom: 3rem;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  height: 500px;
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.benefit-card.reversed {
  flex-direction: row-reverse;
}

/* Imagen del beneficio */
.benefit-image {
  flex: 0 0 50%;
  width: 50%;
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(33, 76, 134, 0.1) 0%, rgba(100, 170, 144, 0.15) 100%);
  z-index: 1;
}

.benefit-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  display: block;
  min-height: 100%;
}

.benefit-card:hover .benefit-image img {
  transform: scale(1.1);
}

/* Contenido del beneficio */
.benefit-content {
  flex: 0 0 50%;
  width: 50%;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Badge del beneficio */
.benefit-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, rgba(100, 170, 144, 0.1), rgba(33, 76, 134, 0.1));
  color: var(--primary-color);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.benefit-badge i {
  font-size: 1rem;
  color: var(--secondary-color);
}

/* Título del beneficio */
.benefit-content h3 {
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 2rem 0;
  line-height: 1.2;
}

/* Lista de beneficios */
.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: rgba(100, 170, 144, 0.03);
  border-left: 3px solid transparent;
}

.benefit-item:hover {
  background: rgba(100, 170, 144, 0.08);
  border-left-color: var(--secondary-color);
  transform: translateX(5px);
}

.benefit-item i {
  font-size: 1.8rem;
  color: var(--secondary-color);
  flex-shrink: 0;
  margin-top: 0.2rem;
  transition: all 0.3s ease;
}

.benefit-item:hover i {
  transform: scale(1.2);
  color: var(--primary-color);
}

.benefit-item div {
  flex: 1;
}

.benefit-item strong {
  display: block;
  color: var(--text-color);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.benefit-item p {
  color: var(--muted-color);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
}

/* Animaciones de entrada con scroll */
[data-aos="fade-left"] {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease;
}

[data-aos="fade-left"].aos-animate {
  opacity: 1;
  transform: translateX(0);
}

[data-aos="fade-right"] {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease;
}

[data-aos="fade-right"].aos-animate {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================
   Contact
   ========================== */
.contact-container { max-width: 720px; margin: 0 auto; text-align: center; }
.contact-container p { color: var(--muted-color); }

#contact form {
  margin-top: 1.25rem;
  display:flex;
  gap: .85rem;
  flex-direction: column;
  align-items: stretch;
}
#contact input[type="text"],
#contact input[type="email"],
#contact textarea {
  padding: .95rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(33,76,134,0.08);
  font-family: var(--kanit-font);
  font-size: 1rem;
  color: var(--text-color);
  resize: vertical;
}
#contact textarea { min-height: 140px; max-height: 320px; }

#contact .cta-button {
  align-self: center;
  padding: .85rem 1.2rem;
  width: 100%;
  max-width: 360px;
}

/* small notes (email/phone) */
.contact-extra {
  margin-top: .85rem;
  color: var(--muted-color);
  font-size: .95rem;
}

/* ==========================
   WhatsApp Floating Button
   ========================== */
.whatsapp-button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 62px;
  height: 62px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 10px 28px rgba(37,211,102,0.18);
  z-index: 1500;
  transition: transform .18s ease;
  text-decoration: none;
  font-size: 1.35rem;
}
.whatsapp-button:hover { transform: translateY(-6px); }

/* ==========================
   Footer
   ========================== */
footer {
  background: linear-gradient(180deg, var(--primary-color) 0%, #173763 100%);
  color: #fff;
  padding: 2rem 0 1.25rem 0;
}
.footer-flex {
  display:flex;
  align-items:center;
  gap: 1rem;
  justify-content: space-between;
  flex-wrap:wrap;
}
.footer-logo img { height: 44px; }
.footer-menu { list-style:none; display:flex; gap: 1rem; padding:0; margin:0; }
.footer-menu a { color: rgba(255,255,255,0.9); text-decoration:none; font-weight:600; }
.footer-socials a { color: #fff; margin-left: .6rem; font-size:1.15rem; text-decoration:none; }
.copy { text-align:center; margin-top: 1.25rem; color: rgba(255,255,255,0.85); font-size:.95rem; }

/* ==========================
   Responsive
   ========================== */

/* Mobile first - small screens */
@media (max-width: 768px) {

  nav ul { display: none; }
  .burger { display: flex; gap:6px; align-items:center; }

  .about-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .about-image-container {
    flex: none;
    width: 100%;
  }
  
  .about-image {
    border-radius: 15px;
  }
  
  .about-image img {
    height: 250px;
  }
  
  .about-side-content {
    flex: none;
    width: 100%;
    padding: 0;
  }
  
  .gabel-logo {
    text-align: center;
  }
  
  .key-point {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }
  
  .key-icon i {
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    padding: 0.6rem;
  }
  
  .stats-compact {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  
  .stat-item:nth-child(5) {
    grid-column: 1 / -1;
    max-width: 200px;
    margin: 0 auto;
  }
  
  .stat-item {
    padding: 0.8rem 0.3rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-prefix,
  .stat-suffix,
  .stat-numeric {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.7rem;
  }

  .differential-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .differential-card {
    padding: 2rem 1.5rem;
  }
  
  .card-icon i {
    font-size: 2.5rem;
    width: 80px;
    height: 80px;
    padding: 1.2rem;
  }
  
  .card-content h3 {
    font-size: 1.3rem;
  }
  
  .card-content p {
    font-size: 0.9rem;
  }

  .impact-content h3 {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
  }
  
  .impact-icons { 
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }
  
  .impact-item {
    padding: 1.5rem 1rem;
  }
  
  .impact-icon-wrapper i {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    padding: 0.8rem;
  }
  
  .impact-item h4 {
    font-size: 1.1rem;
  }
  
  .impact-item p {
    font-size: 0.9rem;
  }

  /* services: show accordion on mobile */
  .services-grid-desktop { display: none; }
  .services-accordion-mobile { display: block; }

  .co-create-text {
    font-size: 1rem;
  }
  
  /* Benefits mobile */
  .benefit-card {
    flex-direction: column;
    min-height: auto;
    margin-bottom: 2rem;
  }
  
  .benefit-card.reversed {
    flex-direction: column;
  }
  
  .benefit-image {
    width: 100%;
    min-height: 300px;
    height: 300px;
  }
  
  .benefit-content {
    width: 100%;
    padding: 2rem 1.5rem;
  }
  
  .benefit-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .benefit-item {
    padding: 0.8rem;
    gap: 0.8rem;
  }
  
  .benefit-item i {
    font-size: 1.5rem;
  }
  
  .benefit-item strong {
    font-size: 0.95rem;
  }
  
  .benefit-item p {
    font-size: 0.85rem;
  }

  .footer-flex { flex-direction: column; gap: .8rem; align-items: center; }

  #hero { height: 100vh; min-height: 500px; }
  
  
  
  h2 {
    font-size: 2.2rem;
  }

  /* Sidebar width adjustment already set, keep close */
}

/* Desktop & larger screens */
@media (min-width: 769px) {

  .burger { display: none; }
  .sidebar { display: none; }
  nav ul { display: flex; }

  .about-content { display:flex; gap: 3rem; }
  .impact-icons { gap: 1.6rem; }

  .services-grid-desktop { display: grid; grid-template-columns: repeat(2, 1fr); }
  .services-accordion-mobile { display: none; }

  .footer-flex { justify-content: space-between; }
}

/* Large screens */
@media (min-width: 1200px) {
  .hero-content h1 { font-size: 3.6rem; }
  .hero-content p { font-size: 1.25rem; }
  .services-grid-desktop { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================
   Utility helpers
   ========================== */
.text-center { text-align:center; }
.hide { display:none !important; }
.show { display:block !important; }

/* End of file */
