/* ===== VARIABLES CSS ===== */
:root {
    /* Colores según especificaciones */
    --color-rojo: #c80000;
    --color-rosa-fondo: #fcf2f2;
    --color-negro: #191919;
    --color-blanco: #ffffff;
    --color-gris-claro: #f7f7f7;
    --color-gris-oscuro: #ededed;
    --color-verde-agua: #66dede;
    --color-hover-rojo: #c80000;
    
    /* Tipografías */
    --font-dm-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-noto-sans: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Tamaños de fuente según especificaciones del docx */
    --font-menu: 16px;
    --font-h1: 38px;
    --font-bajada: 18px;
    --font-proximo-inicio: 18px;
    --font-botones: 18px;
    --font-h2: 34px;
    --font-parrafo-h2: 18px;
    --font-sobretitulo-h2: 20px;
    --font-h3: 22px;
    --font-parrafo-h3: 16px;
}

/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-noto-sans);
    line-height: 1.6;
    color: var(--color-negro);
    overflow-x: hidden;
    background-color: var(--color-blanco);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TIPOGRAFÍAS ===== */
h1 {
    font-family: var(--font-dm-sans);
    font-weight: 700;
    font-size: var(--font-h1);
    line-height: 1.2;
}

h2 {
    font-family: var(--font-dm-sans);
    font-weight: 600;
    font-size: var(--font-h2);
    line-height: 1.3;
}

h3 {
    font-family: var(--font-dm-sans);
    font-weight: 600;
    font-size: var(--font-h3);
    line-height: 1.4;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--color-gris-oscuro);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    height: 48px;
    
    transition: filter 0.3s ease;
  filter: none !important;
}

.header.scrolled .logo {
    
  filter: none !important;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.8rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-blanco);
    font-family: var(--font-dm-sans);
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 4px;
    display: inline-block;
}

.nav-menu a:hover {
    color: var(--color-blanco);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-blanco);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.header.scrolled .nav-menu a {
    color: var(--color-negro);
}

.header.scrolled .nav-menu a:hover {
    color: var(--color-negro);
}

.header.scrolled .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-rojo);
    transition: width 0.3s ease;
}

.header.scrolled .nav-menu a:hover::after {
    width: 50%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-blanco);
    margin-bottom: 3px;
    transition: 0.3s;
}

.header.scrolled .nav-toggle span {
    background: var(--color-negro);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 120vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-blanco);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(200, 0, 0, 0.7), rgba(180, 0, 0, 0.8));
    z-index: -1;
}

.hero-content {
    z-index: 1;
    max-width: 900px;
    padding: 3rem 2rem 4rem 2rem;
    margin-top: 80px;
    text-align: center;
}

.hero-title {
    font-size: var(--font-h1);
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-align: center;
}

.hero-subtitle {
    font-weight: 700;
    opacity: 0.95;
}

.hero-description {
    font-family: var(--font-noto-sans);
    font-size: var(--font-bajada);
    margin-bottom: 1rem;
    opacity: 0.95;
    line-height: 1.4;
    text-align: center;
}

 
.countdown-container {
    margin-bottom: 2rem;
}

.countdown-label {
    font-family: var(--font-noto-sans);
    font-size: var(--font-proximo-inicio);
    font-weight: 700;
    margin-bottom: 2rem;
    margin-top: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 2rem;
    background: transparent;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--color-blanco);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    position: relative;
}

.countdown-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 40px;
    background: var(--color-blanco);
}

.countdown-number {
    font-family: var(--font-dm-sans);
    font-size: 2rem;
    font-weight: 700;
    background: transparent;
    padding: 0.5rem;
    border-radius: 0;
    border: none;
    margin-bottom: 0.25rem;
    min-width: 70px;
    display: block;
    color: var(--color-blanco);
}

.countdown-text {
    font-family: var(--font-dm-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
} 

/* --- Countdown grid (dos columnas) --- */
.countdowns-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
  width: 100%;
  max-width: 880px;
  margin: 0 auto 12px;
}
@media (min-width: 768px){
  .countdowns-grid{ grid-template-columns: 1fr 1fr; }
}

.countdown-card{
  background: transparent;   /* Sin fondo */
  border: none;              /* Sin borde */
  backdrop-filter: none;     /* Por si quedara residuo */
  padding: 14px 16px;        /* Mantenemos separación interior */
}

.countdown-card .countdown{
  display:flex;
  justify-content: space-between;
  gap: 10px;
}

.countdown-card .countdown-item{
  text-align:center;
  flex:1;
}

.countdown-card .countdown-number{
  display:block;
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 700;
  line-height: 1;
}

.countdown-card .countdown-text{
  display:block;
  font-size: clamp(10px, 2vw, 12px);
  letter-spacing: .6px;
  opacity:.9;
}

.countdown-card .countdown-label{
  font-weight: 600;
  margin: 0 0 8px 0;
  line-height: 1.2;
}




.cta-button {
    background: var(--color-verde-agua);
    color: var(--color-negro);
    padding: 1rem 2.5rem;
    border: 2px solid var(--color-verde-agua);
    border-radius: 25px;
    font-family: var(--font-dm-sans);
    font-size: var(--font-botones);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    display: inline-block;
    text-decoration: none;
    z-index: 10;
    position: relative;
}

.cta-button:hover {
    background: transparent;
    color: var(--color-blanco);
    border-color: var(--color-blanco);
    transform: translateY(-2px);
}

/* ===== SOBRE NOSOTROS SECTION ===== */
.sobre-nosotros {
    padding: 6rem 0;
    background: var(--color-blanco);
}

.section-title {
    text-align: center;
    color: var(--color-rojo);
	font-size: 22px;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    /*font-size: var(--font-h2);*/
	font-size: 34px;
    color: var(--color-negro);
    margin-bottom: 0.5rem;
    font-weight: 600;
    position: relative;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 1px;
    background: var(--color-rojo);
}

.section-description {
    text-align: center;
    font-size: var(--font-sobretitulo-h2);
    font-family: var(--font-dm-sans);
    font-weight: 600;
    color: var(--color-negro);
    margin-bottom: 4rem;
}

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

.feature-item {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s ease;
    background: var(--color-blanco);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: var(--color-gris-oscuro);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
    padding: 20px;
}

.feature-icon img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.feature-item h4 {
    font-family: var(--font-dm-sans);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-negro);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.feature-item p {
    color: var(--color-negro);
    font-size: 14px;
    line-height: 1.5;
}

/* ===== FORMACIONES SECTION - CORREGIDA ===== */
.formaciones {
    padding: 6rem 0;
    background: var(--color-gris-claro);
}

.formaciones-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.formaciones .section-title {
    font-family: var(--font-dm-sans);
    font-weight: 600;
    font-size: 34px;
    color: var(--color-negro);
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

/* Corregir subrayados en formaciones */
/*.formaciones .section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 1px;
    background: var(--color-rojo);
}*/

/* Igualar subrayado del título "Nuestras formaciones" al estilo de "Cortando Distancias" */
.formaciones .section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;                /* mismo ancho que el subrayado anterior */
  height: 1px;
  background: var(--color-rojo);
}

.formaciones .section-subtitle {
    font-family: var(--font-dm-sans);
    font-weight: 600;
    font-size: 22px;
    color: var(--color-negro);
    text-align: center;
    margin-bottom: 4rem;
    line-height: 1.3;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Remover el subrayado del subtítulo */
.formaciones .section-subtitle::after {
    display: none;
}

.formaciones-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 4rem 0;
    background: var(--color-blanco);
    border-radius: 0;
    overflow: hidden;
}

.formacion-item {
    background: var(--color-gris-claro);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.formacion-item:first-child {
    background: var(--color-blanco);
}

.formacion-item:hover {
    background: var(--color-blanco);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.formacion-item.active {
    background: var(--color-blanco);
}

.formacion-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.formacion-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.formacion-item h4 {
    color: var(--color-rojo);
    font-family: var(--font-dm-sans);
    font-weight: 600;
    font-size: 24px;
    line-height: 1.3;
    margin: 0;
}

.formaciones-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: end; 
    margin-top: 4rem;
}

.formaciones-visual {
    position: relative;
    display: flex;
    align-items: flex-end;
}

.formaciones-visual img {
    width: 100%;
    height: auto;
    max-width: 400px;
    min-width: 300px;
}

.formaciones-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 2rem;
}

.formaciones-description {
    font-size: 18px;
    color: var(--color-negro);
    line-height: 1.6;
    text-align: left;
    margin-bottom: 2rem;
    max-width: 95%;
}

.formaciones-description p {
    margin-bottom: 1rem;
}

/* ===== BENEFICIOS FORMACIÓN SECTION ===== */
.beneficios-formacion {
    padding: 6rem 0;
    background: var(--color-gris-claro);
}

.beneficios-formacion .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.beneficios-content {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 0;
    align-items: center;
}

.beneficios-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.beneficios-visual img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.beneficios-text {
    padding-left: 3rem;
}

.beneficios-text h2 {
    color: var(--color-negro);
    margin-bottom: 3rem;
    text-align: left;
}

.beneficios-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.beneficio-item {
    background: var(--color-blanco);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.beneficio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.beneficio-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.beneficio-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.beneficio-item h4 {
    color: var(--color-negro);
    font-family: var(--font-dm-sans);
    font-size: var(--font-h3);
    font-weight: 600;
    margin-bottom: 1rem;
}

.beneficio-item p {
    color: var(--color-negro);
    font-size: var(--font-parrafo-h3);
    line-height: 1.7;
    margin: 0;
}

/* ===== EMDR INFO SECTION - FIXED EQUAL HEIGHTS ===== */
.emdr-info {
    padding: 6rem 0;
    background: var(--color-gris-claro);
}

.emdr-info .container {
    max-width: 1300px;
}

.emdr-content {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: stretch; /* Make both columns equal height */
}

.emdr-text {
    height: 100%; /* Fill available height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.emdr-text h2 {
    color: var(--color-negro);
    margin-bottom: 2rem;
    position: relative;
    font-family: var(--font-dm-sans);
    font-weight: 600;
    font-size: 34px;
}

.emdr-text h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30%;
    height: 1px;
    background: var(--color-rojo);
}

.emdr-text p {
    font-family: var(--font-noto-sans);
    font-weight: 400;
    font-size: 18px;
    margin-bottom: 1.5rem;
    color: var(--color-negro);
    line-height: 1.7;
}

.emdr-benefits {
    background: var(--color-blanco);
    padding: 2rem; /* Reduced from 2.5rem */
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-gris-oscuro);
    text-align: center;
    max-width: none; /* Remove width restriction */
    width: 100%; /* Use full available width */
    height: 100%; /* Fill available height */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute content evenly */
}

.emdr-benefits h3 {
    color: var(--color-negro);
    margin-top: 0.5rem; /* Reduced from default */
    margin-bottom: 1rem; /* Reduced from 1.5rem */
    font-size: 34px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem; /* Reduced from 1.5rem */
    margin-bottom: 1rem; /* Reduced from 1.5rem */
    align-items: stretch;
    flex-grow: 1; /* Take up remaining space */
}

.benefit-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: transparent;
    padding: 1rem;
    border-radius: 0;
    box-shadow: none;
    border: none;
    text-align: left;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-item h4 {
    color: var(--color-rojo);
    font-family: var(--font-dm-sans);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 0.4rem; /* Reduced from 0.6rem */
}

.benefit-item p {
    color: var(--color-negro);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 0; /* Remove extra margin */
}

.emdr-benefits .ver-mas-btn {
    display: inline-block;
    background: var(--color-verde-agua);
    color: var(--color-negro);
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 25px;
    font-family: var(--font-dm-sans);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    width: fit-content;
    margin-top: auto; /* Push button to bottom */
    align-self: center; /* Center the button */
}

.emdr-benefits .ver-mas-btn:hover {
    background: var(--color-hover-rojo);
    color: var(--color-blanco);
    transform: translateY(-2px);
}

/* ===== CONTACT SECTION - FIXED CENTERED ICONS ===== */
.contacto {
    padding: 6rem 0;
    background: var(--color-gris-claro);
}

.contacto h2 {
    text-align: center;
    color: var(--color-negro);
    margin-bottom: 1rem;
    position: relative;
    font-family: var(--font-dm-sans);
    font-weight: 600;
    font-size: var(--font-h2);
}

.contacto h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 1px;
    background: var(--color-rojo);
}

.contacto p {
    text-align: center;
    font-size: var(--font-parrafo-h2);
    color: var(--color-negro);
    margin-bottom: 4rem;
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: flex-start;
}

.contact-icon-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 200px;
}

.contact-icon-circle {
    width: 80px;
    height: 80px;
    background: var(--color-verde-agua);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.contact-icon-circle:hover {
    transform: translateY(-5px);
}

/* Bootstrap Icons - centered properly */
.contact-icon-circle i {
    font-size: 32px;
    color: var(--color-negro);
}

/* Legacy image support */
.contact-icon-circle img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.contact-icon-item h4 {
    font-family: var(--font-dm-sans);
    font-weight: 600;
    color: var(--color-negro);
    font-size: 18px;
    margin-bottom: 0.5rem;
    text-align: center;
}

.contact-icon-item p {
    color: var(--color-negro);
    font-size: 14px;
    margin: 0;
    text-align: center;
    line-height: 1.4;
    word-break: break-word;
}

/* Uniform link styles for contact section */
.contact-icon-item a {
    font-weight: 600;
    text-decoration: none;
    color: var(--color-negro);
    transition: color 0.3s ease;
}

.contact-icon-item a:hover {
    color: var(--color-rojo);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid var(--color-gris-oscuro);
    border-radius: 10px;
    font-size: var(--font-parrafo-h3);
    font-family: var(--font-noto-sans);
    transition: border-color 0.3s ease;
    background: var(--color-blanco);
    color: var(--color-negro);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-verde-agua);
}

.contact-form button {
    background: var(--color-verde-agua);
    color: var(--color-negro);
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-family: var(--font-dm-sans);
    font-size: var(--font-botones);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
    width: fit-content;
    min-width: 150px;
}

.contact-form button:hover {
    background: var(--color-hover-rojo);
    color: var(--color-blanco);
    transform: translateY(-2px);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 1024px) {
    .emdr-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .contact-icons {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    
    .contact-icon-item {
        width: auto;
    }
}

@media (max-width: 480px) {
    .contact-icons {
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact-icon-circle {
        width: 70px;
        height: 70px;
    }

    .contact-icon-circle i {
        font-size: 28px;
    }

    .contact-icon-circle img {
        width: 35px;
        height: 35px;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-negro);
    color: var(--color-blanco);
    padding: 2rem 0;
}

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

.footer p {
    margin: 0;
    opacity: 0.8;
    font-size: var(--font-parrafo-h3);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-blanco);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--color-negro);
}

.social-link:hover {
    background: var(--color-verde-agua);
    color: var(--color-negro);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 222, 222, 0.4);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-link i {
    font-size: 20px;
}

/* ===== ANIMATIONS ===== */
@media (max-width: 768px) {
    :root {
        --font-h1: 28px;
        --font-h2: 24px;
        --font-h3: 18px;
        --font-parrafo-h2: 16px;
        --font-parrafo-h3: 14px;
        --font-botones: 16px;
    }

    .nav {
        padding: 1rem 2rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--color-blanco);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        border-top: 1px solid var(--color-gris-oscuro);
    }

    .nav-menu a {
        color: var(--color-negro) !important;
    }

    .nav-menu a::after {
        background: var(--color-negro);
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        height: 110vh;
    }

    .hero-content {
        padding: 2rem 1rem 3rem 1rem;
        margin-top: 80px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .countdown {
        gap: 0;
        padding: 0.6rem 1rem;
        max-width: 320px;
        border: 2px solid var(--color-blanco);
        border-radius: 6px;
    }
    
    .countdown-item {
        min-width: 60px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
        padding: 0.4rem;
        min-width: 50px;
    }

    .countdown-item:not(:last-child)::after {
        height: 32px;
    }

    .countdown-text {
        font-size: 0.65rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .formaciones-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .contact-icons {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --font-h1: 24px;
        --font-h2: 22px;
        --font-h3: 16px;
        --font-parrafo-h2: 14px;
        --font-parrafo-h3: 13px;
        --font-botones: 14px;
    }

    .countdown {
        flex-wrap: wrap;
        gap: 0;
        padding: 0.5rem 0.8rem;
        max-width: 280px;
        border: 2px solid var(--color-blanco);
        border-radius: 5px;
    }
    
    .countdown-item {
        min-width: 50px;
    }
    
    .countdown-number {
        font-size: 1.2rem;
        padding: 0.3rem;
        min-width: 40px;
    }

    .countdown-item:not(:last-child)::after {
        height: 28px;
    }

    .countdown-text {
        font-size: 0.55rem;
    }
    
    .hero {
        height: 100vh;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        margin-bottom: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .formaciones-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }
    
    .contact-icons {
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact-icon-circle {
        width: 70px;
        height: 70px;
    }

    .contact-icon-circle img {
        width: 35px;
        height: 35px;
    }
    
    .beneficio-item {
        padding: 1.5rem;
    }
    
    .beneficio-item h4 {
        font-size: 18px;
    }
    
    .beneficio-item p {
        font-size: 14px;
    }
    
    .beneficio-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--color-verde-agua);
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    .hero-overlay {
        background: var(--color-negro);
    }
    
    .benefit-item,
    .feature-item,
    .formacion-item {
        border: 2px solid var(--color-negro);
    }
}

section[id] {
    scroll-margin-top: 100px;
}

/* ===== POP-UP ANIVERSARIO ===== */
.anniversary-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s ease;
}

.anniversary-popup.show {
    opacity: 1;
    visibility: visible;
    background-color: rgba(0, 0, 0, 0.8);
}

.anniversary-popup.fade-out {
    opacity: 0;
    background-color: rgba(0, 0, 0, 0);
    transition: all 1.5s ease-out;
}

.popup-content {
    position: relative;
    max-width: min(900px, 95vw);
    max-height: min(600px, 90vh);
    width: auto;
    height: auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.3) rotateY(-15deg);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

.anniversary-popup.show .popup-content {
    transform: scale(1) rotateY(0deg);
    opacity: 1;
}

.popup-left {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gris-claro);
}

.popup-right {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.popup-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s ease;
}

.anniversary-popup.show .popup-image {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.2s;
}

.popup-right h2 {
    font-family: var(--font-dm-sans);
    font-size: 28px;
    font-weight: 600;
    color: var(--color-negro);
    margin-bottom: 1rem;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.anniversary-popup.show .popup-right h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.popup-divider {
    width: 60px;
    height: 3px;
    background: var(--color-rojo);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: all 0.6s ease;
}

.anniversary-popup.show .popup-divider {
    opacity: 1;
    transform: scaleX(1);
    transition-delay: 0.5s;
}

.popup-right p {
    font-family: var(--font-noto-sans);
    font-size: 16px;
    color: var(--color-negro);
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.anniversary-popup.show .popup-right p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.anniversary-popup.show .newsletter-form {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid var(--color-gris-oscuro);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-noto-sans);
    transition: border-color 0.3s ease;
    background: white;
    color: var(--color-negro);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-verde-agua);
}

.subscribe-btn {
    background: var(--color-verde-agua);
    color: var(--color-negro);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: var(--font-dm-sans);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.subscribe-btn:hover {
    background: var(--color-rojo);
    color: var(--color-blanco);
    transform: translateY(-2px);
}

.subscribe-btn:disabled {
    background: var(--color-gris-oscuro);
    color: var(--color-negro);
    cursor: not-allowed;
    transform: none;
}

.form-message {
    font-size: 14px;
    font-family: var(--font-noto-sans);
    text-align: center;
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.form-message.show {
    opacity: 1;
    transform: translateY(0);
}

.form-message.success {
    color: #28a745;
}

.form-message.error {
    color: #dc3545;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: var(--color-negro);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    opacity: 0;
    transform: scale(0.5);
}

.anniversary-popup.show .close-btn {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.4s;
}

.close-btn:hover {
    background: var(--color-rojo);
    color: white;
    transform: scale(1.1);
}

/* Responsive para el pop-up */
@media (max-width: 768px) {
    .popup-content {
        max-width: min(500px, 95vw);
        max-height: min(700px, 90vh);
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        border-radius: 15px;
    }
    
    .popup-left {
        min-height: 200px;
    }
    
    .popup-right {
        padding: 2rem 1.5rem;
    }
    
    .popup-right h2 {
        font-size: 24px;
    }
    
    .popup-right p {
        font-size: 14px;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .close-btn {
        width: 35px;
        height: 35px;
        top: 10px;
        right: 10px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .popup-content {
        max-width: min(400px, 98vw);
        max-height: min(600px, 85vh);
        border-radius: 10px;
    }
    
    .popup-left {
        min-height: 150px;
    }
    
    .popup-right {
        padding: 1.5rem 1rem;
    }
    
    .popup-right h2 {
        font-size: 20px;
        margin-bottom: 0.8rem;
    }
    
    .popup-right p {
        font-size: 13px;
        margin-bottom: 1.5rem;
    }
    
    .close-btn {
        width: 30px;
        height: 30px;
        top: 8px;
        right: 8px;
        font-size: 16px;
    }
}keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.feature-item {
    animation: fadeInUp 0.6s ease-out;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    :root {
        --font-h1: 32px;
        --font-h2: 28px;
        --font-h3: 20px;
    }
    
    .emdr-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .beneficios-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .beneficios-text {
        padding-left: 0;
    }
    
    .beneficios-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .formaciones-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .formaciones-visual {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --font-h1: 28px;
        --font-h2: 24px;
        --font-h3: 18px;
        --font-parrafo-h2: 16px;
        --font-parrafo-h3: 14px;
        --font-botones: 16px;
    }

    .nav {
        padding: 1rem 2rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--color-blanco);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        border-top: 1px solid var(--color-gris-oscuro);
    }

    .nav-menu a {
        color: var(--color-negro) !important;
    }

    .nav-menu a::after {
        background: var(--color-negro);
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        height: 110vh;
    }

    .hero-content {
        padding: 2rem 1rem 3rem 1rem;
        margin-top: 80px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .countdown {
        gap: 0;
        padding: 0.6rem 1rem;
        max-width: 320px;
        border: 2px solid var(--color-blanco);
        border-radius: 6px;
    }
    
    .countdown-item {
        min-width: 60px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
        padding: 0.4rem;
        min-width: 50px;
    }

    .countdown-item:not(:last-child)::after {
        height: 32px;
    }

    .countdown-text {
        font-size: 0.65rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .formaciones-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .contact-icons {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --font-h1: 24px;
        --font-h2: 22px;
        --font-h3: 16px;
        --font-parrafo-h2: 14px;
        --font-parrafo-h3: 13px;
        --font-botones: 14px;
    }

    .countdown {
        flex-wrap: wrap;
        gap: 0;
        padding: 0.5rem 0.8rem;
        max-width: 280px;
        border: 2px solid var(--color-blanco);
        border-radius: 5px;
    }
    
    .countdown-item {
        min-width: 50px;
    }
    
    .countdown-number {
        font-size: 1.2rem;
        padding: 0.3rem;
        min-width: 40px;
    }

    .countdown-item:not(:last-child)::after {
        height: 28px;
    }

    .countdown-text {
        font-size: 0.55rem;
    }
    
    .hero {
        height: 100vh;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        margin-bottom: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .formaciones-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }
    
    .contact-icons {
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact-icon-circle {
        width: 70px;
        height: 70px;
    }

    .contact-icon-circle img {
        width: 35px;
        height: 35px;
    }
    
    .beneficio-item {
        padding: 1.5rem;
    }
    
    .beneficio-item h4 {
        font-size: 18px;
    }
    
    .beneficio-item p {
        font-size: 14px;
    }
    
    .beneficio-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--color-verde-agua);
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    .hero-overlay {
        background: var(--color-negro);
    }
    
    .benefit-item,
    .feature-item,
    .formacion-item {
        border: 2px solid var(--color-negro);
    }
}

section[id] {
    scroll-margin-top: 100px;
}

/* ===== POP-UP ANIVERSARIO ===== */
.anniversary-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s ease;
}

.anniversary-popup.show {
    opacity: 1;
    visibility: visible;
    background-color: rgba(0, 0, 0, 0.8);
}

.anniversary-popup.fade-out {
    opacity: 0;
    background-color: rgba(0, 0, 0, 0);
    transition: all 1.5s ease-out;
}

.popup-content {
    position: relative;
    max-width: min(900px, 95vw);
    max-height: min(600px, 90vh);
    width: auto;
    height: auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.3) rotateY(-15deg);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

.anniversary-popup.show .popup-content {
    transform: scale(1) rotateY(0deg);
    opacity: 1;
}

.popup-left {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gris-claro);
}

.popup-right {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.popup-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s ease;
}

.anniversary-popup.show .popup-image {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.2s;
}

.popup-right h2 {
    font-family: var(--font-dm-sans);
    font-size: 28px;
    font-weight: 600;
    color: var(--color-negro);
    margin-bottom: 1rem;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.anniversary-popup.show .popup-right h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.popup-divider {
    width: 60px;
    height: 3px;
    background: var(--color-rojo);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: all 0.6s ease;
}

.anniversary-popup.show .popup-divider {
    opacity: 1;
    transform: scaleX(1);
    transition-delay: 0.5s;
}

.popup-right p {
    font-family: var(--font-noto-sans);
    font-size: 16px;
    color: var(--color-negro);
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.anniversary-popup.show .popup-right p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.anniversary-popup.show .newsletter-form {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid var(--color-gris-oscuro);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-noto-sans);
    transition: border-color 0.3s ease;
    background: white;
    color: var(--color-negro);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-verde-agua);
}

.subscribe-btn {
    background: var(--color-verde-agua);
    color: var(--color-negro);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: var(--font-dm-sans);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.subscribe-btn:hover {
    background: var(--color-rojo);
    color: var(--color-blanco);
    transform: translateY(-2px);
}

.subscribe-btn:disabled {
    background: var(--color-gris-oscuro);
    color: var(--color-negro);
    cursor: not-allowed;
    transform: none;
}

.form-message {
    font-size: 14px;
    font-family: var(--font-noto-sans);
    text-align: center;
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.form-message.show {
    opacity: 1;
    transform: translateY(0);
}

.form-message.success {
    color: #28a745;
}

.form-message.error {
    color: #dc3545;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: var(--color-negro);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    opacity: 0;
    transform: scale(0.5);
}

.anniversary-popup.show .close-btn {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.4s;
}

.close-btn:hover {
    background: var(--color-rojo);
    color: white;
    transform: scale(1.1);
}

/* Responsive para el pop-up */
@media (max-width: 768px) {
    .popup-content {
        max-width: min(500px, 95vw);
        max-height: min(700px, 90vh);
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        border-radius: 15px;
    }
    
    .popup-left {
        min-height: 200px;
    }
    
    .popup-right {
        padding: 2rem 1.5rem;
    }
    
    .popup-right h2 {
        font-size: 24px;
    }
    
    .popup-right p {
        font-size: 14px;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .close-btn {
        width: 35px;
        height: 35px;
        top: 10px;
        right: 10px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .popup-content {
        max-width: min(400px, 98vw);
        max-height: min(600px, 85vh);
        border-radius: 10px;
    }
    
    .popup-left {
        min-height: 150px;
    }
    
    .popup-right {
        padding: 1.5rem 1rem;
    }
    
    .popup-right h2 {
        font-size: 20px;
        margin-bottom: 0.8rem;
    }
    
    .popup-right p {
        font-size: 13px;
        margin-bottom: 1.5rem;
    }
    
    .close-btn {
        width: 30px;
        height: 30px;
        top: 8px;
        right: 8px;
        font-size: 16px;
    }
}

/* Igualar alturas entre las dos columnas y permitir que el cuadro se ensanche */
.emdr-content{
  align-items: stretch;           /* antes: start */
}

.emdr-text,
.emdr-benefits{
  height: 100%;                   /* ambas columnas igualan la altura del grid */
}

/* Hacer que el cuadro de beneficios use todo el ancho disponible de su columna */
.emdr-benefits{
  max-width: none;                /* antes limitaba a 750px */
  width: 100%;
  display: flex;                  /* para poder empujar el botón al pie */
  flex-direction: column;
}

/* Que la grilla interna llene el alto y el botón quede abajo */
.benefits-grid{
  align-items: stretch;           /* ya lo tenías, lo reforzamos */
}
.emdr-benefits .ver-mas-btn{
  margin-top: auto;               /* el botón baja al borde inferior del cuadro */
}

/* Ajustes finos de espaciado dentro del cuadro de beneficios */
.emdr-benefits {
  padding: 1.5rem;         /* antes 2.5rem, reduce el aire superior */
}

.emdr-benefits h3 {
  margin-top: 0.5rem;      /* baja la distancia desde el borde superior */
  margin-bottom: 0.8rem;   /* antes 1.5rem, menos espacio con la grilla */
}

.benefits-grid {
  gap: 0.8rem;             /* antes 1.5rem, achica la separación entre filas/columnas */
  margin-bottom: 0.8rem;   /* reduce la distancia con el botón */
}

.benefit-item h4 {
  margin-bottom: 0.3rem;   /* menos aire entre subtítulo y texto */
}

.benefit-item p {
  margin-bottom: 0;        /* elimina márgenes extra de los párrafos */
}

.emdr-benefits .ver-mas-btn {
  margin-top: 0.8rem;      /* más cerca de las tarjetas */
}

/* Fondo blanco para toda la sección */
.formaciones {
    background: var(--color-blanco);
}

/* Pestañas en gris */
.formaciones-grid {
    background: var(--color-blanco);
}
.formacion-item {
    background: var(--color-gris-claro);
}
.formacion-item.active,
.formacion-item:hover {
    background: var(--color-blanco); /* se resaltan al hover/activo */
}

/* Íconos más pequeños dentro de cada pestaña */
.formacion-icon {
    width: 70px;   /* antes 80px */
    height: 70px;  /* antes 80px */
}
.formacion-icon img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

/* Centrar íconos dentro de sus círculos */
.contact-icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon-circle img {
  width: 50%;      /* ajusta tamaño relativo para que no se descuadren */
  height: 50%;     
  object-fit: contain;
  display: block;  /* evita espacio fantasma debajo */
}

/* Estilos uniformes para los links de la sección Contacto */
.contact-icons a {
  font-weight: 600;     /* negrita */
  text-decoration: none; /* sin subrayado */
  color: var(--color-negro); /* mismo color de texto */
}

.contact-icons a:hover {
  color: var(--color-rojo); /* opcional: destacar al pasar el mouse */
}

/* Íconos Bootstrap dentro de los círculos */
.contact-icon-circle i {
  font-size: 32px;   /* tamaño del ícono */
  color: var(--color-negro);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.ver-mas-btn {
    display: inline-block;              /* ancho ajustado al texto */
    background: var(--color-verde-agua);
    color: var(--color-negro);
    padding: 0.8rem 2rem;               /* margen interno uniforme */
    text-decoration: none;
    border-radius: 25px;
    font-family: var(--font-dm-sans);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid var(--color-verde-agua);
    margin: 0 auto;                     /* centra el botón */
}

.formaciones-text {
    text-align: center;                 /* asegura la alineación al centro */
}

.ver-mas-btn:hover {
    background: transparent;
    color: var(--color-negro);
    border-color: var(--color-rojo);
    transform: translateY(-2px);
}

/* === Contact icons layout override (email column wider, no wrap on desktop) === */
.contact-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.contact-icon-item {
  flex: 1;
  min-width: 0;
  text-align: center;
}
/* Make the middle (Mail) item wider */
.contact-icon-item:nth-child(2) { flex: 1.5; }
/* Prevent email from breaking into two lines on desktop */
.contact-icon-item:nth-child(2) p a { white-space: nowrap; }
/* Mobile: stack and allow wrapping */
@media (max-width: 640px) {
  .contact-icons { flex-direction: column; align-items: center; }
  .contact-icon-item { flex: none; width: 100%; }
  .contact-icon-item:nth-child(2) p a { white-space: normal; word-break: break-word; }
}

/* normalized header stacking */
header{z-index:1000;position:sticky;top:0;}

/* Shared page title banner */
/* ===== PAGE TITLE BANNER (Unified) ===== */
.page-title-banner {
    background-color: #C80000;
    padding: 20px 0;
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    margin: 0;
    width: 100%;
}

.page-title-banner .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

.page-title-banner h1 {
    font-family: var(--font-dm-sans);
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .page-title-banner {
        padding: 16px 0;
    }
    .page-title-banner h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .page-title-banner {
        padding: 14px 0;
    }
    .page-title-banner h1 {
        font-size: 1.5rem;
    }
}

/* MOBILE NAV BASE */
/* MOBILE NAV BASE (overlay, sin scroll lateral) */
:root{ --header-h: 100px; }

@media (max-width: 768px){
  body.nav-open{ overflow: hidden; height: 100vh; }

  .header{ z-index: 1000; }
  .nav{ padding: 1rem 1.25rem; }
  .nav-toggle{ display: flex; flex-direction: column; gap: 4px; z-index: 1100; }

  .nav-menu{
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    height: calc(100vh - var(--header-h));
    background: #fff;
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow-y: auto;
    padding: 12px 16px;
    gap: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    z-index: 1050;
    width: 100%; /* evita 100vw y el "saltito" horizontal */
  }
  .nav-menu.active,
  .nav-menu.open{ transform: translateX(0); }

  .nav-menu li{ margin: 0; }
  .nav-menu a{
    display: block;
    padding: 12px 10px;
    font-size: 18px;
  }
}
