/*
Theme Name: AAEECO Theme v3
Theme URI: 
Author: 
Author URI: 
Description: 
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 1.4
License: 
License URI: 
Text Domain: aaeeco-theme
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

:root {
    --verde: #50AB41;
    --azul: #66CBEF;
    --primary-dark: #1a3c6c;
    --primary-light: #2a5a9e;
    --secondary: #e63946;
    --light: #f8f9fa;
    --gray: #6c757d;
    --dark: #212529;
    --accent: #ffd166;
    --transition: all 0.3s ease;
}

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

html {
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

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

/* Scroll-based animations */
.scroll-reveal {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-reveal.visible {
    opacity: 1;
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-scale.visible {
    opacity: 1;
    transform: scale(1);
}

.scale-in {
    animation: scaleIn 0.8s ease-out forwards;
    opacity: 0;
}

.grid-oferta-formativa {
    display: grid;
    gap: 25px;
    justify-items: center;
    font-size: 0.8rem;
}

/* Advanced scroll effects */
.floating {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgb(102, 203, 239, 0.8);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(230, 57, 70, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0);
    }
}

.glow {
    position: relative;
    overflow: hidden;
}

.glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 209, 102, 0.2) 0%, transparent 70%);
    transform: rotate(30deg);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.glow:hover::before {
    opacity: 1;
}

.gradient-text {
    /*background: linear-gradient(90deg, var(--primary-dark), var(--accent), var(--secondary), var(--primary-dark));*/
    /*eliminar*/
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.header-top {
    /*background: -webkit-linear-gradient(90deg, #436544, #50ab41, #436544);
    background: linear-gradient(90deg, #436544, #50ab41, #436544);*/

    /*background: -webkit-linear-gradient(90deg, #2e462f, #38772d, #2e462f);
    background: linear-gradient(90deg, #2e462f, #38772d, #2e462f);*/

    background: -webkit-linear-gradient(90deg, #293f2a, #356a2b, #293f2a);
    background: linear-gradient(90deg, #293f2a, #356a2b, #293f2a);

    color: white;
    padding: 10px 0;
    transition: var(--transition);
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.social-links a {
    color: white;
    margin-left: 15px;
    font-size: 1.1rem;
    transition: var(--transition);
    -webkit-transition: var(--transition);
    -moz-transition: var(--transition);
    -ms-transition: var(--transition);
    -o-transition: var(--transition);
    transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
}

.social-links a:hover {
    color: var(--light);
    transform: translateY(-2px);
}

/* FACEBOOK */
.social-links a:hover .fa-facebook-f {
    color: #1877F2;
    text-shadow: 0 0 8px rgba(24, 119, 242, 0.6);
}

/* X (Twitter) */
.social-links a:hover .fa-x-twitter {
    color: #000000;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

/* INSTAGRAM */
.social-links a:hover .fa-instagram {
    color: #E1306C;
    text-shadow: 0 0 8px rgba(225, 48, 108, 0.6);
}

/* LINKEDIN */
.social-links a:hover .fa-linkedin-in {
    color: #0A66C2;
    text-shadow: 0 0 8px rgba(10, 102, 194, 0.6);
}

/* Pequeño efecto de elevación */
.social-links a:hover {
    transform: translateY(-2px);
}


.contact-info span {
    margin-right: 20px;
    font-size: 0.9rem;
    cursor: pointer;
}

.contact-info span:hover {
    color: var(--verde);
}

#contact-header span:hover {
    color: var(--azul);
}

.contact-header-top span {
    margin-right: 20px;
    font-size: 0.9rem;
    cursor: pointer;
}

.logo-container {
    position: relative;
    /* para posicionar bien el toggle en móvil */
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
    padding: 0px 10px;
}

.logo-col {
    flex: 1;
    display: flex;
    align-items: center;
}

/* Columna 1 */
.img-col {
    justify-content: flex-start;
}

/* Columna 2 */
.text-col {
    /*flex-direction: column;
    text-align: center;*/
    justify-content: center;
}

/* Columna 3 */
.btn-col {
    justify-content: flex-end;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 70px;
    width: auto;
    margin-right: 15px;
}

#logo-andalucia img {
    display: flex;
    align-items: center;
    height: 70px;
    width: auto;
    margin-right: 15px;
    transition: transform 0.8s ease;
    border-radius: 15px;
}

.logo:hover img {
    transform: rotateY(360deg) scale(1.1);
}

.logo-text {
    text-align: center;
    position: relative;
}

.logo-text h1 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.logo-text h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: -130px;
    width: 384%;
    height: 2px;
    background: linear-gradient(to right, var(--primary-dark), var(--accent));
    border-radius: 1px;
}

.logo-text p {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
}

nav {
    background: -webkit-linear-gradient(90deg, #436544, #50ab41, #436544);
    background: linear-gradient(90deg, #436544, #50ab41, #436544);

    box-shadow: 0 8px 12px rgba(255, 255, 255, 0.6);

    display: flex;
    position: relative;
}

/* CONTENEDOR DEL NAV Y HAMBURGUESA */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav-logo {
    /* ahora es parte del flujo normal, no absoluto */
    display: flex;
    margin-left: 50px;
    margin-right: 20px;
    pointer-events: none;
}

.nav-logo img {
    height: 40px;
    width: auto;
    background: var(--light);
    /* mismo blanco suave del tema */
    padding: 4px 10px;
    border-radius: 999px;
    /* pastilla redondeada */
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* cuando el nav está fijo, mostramos el logo */
/*nav.fixed .nav-logo {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}*/

/* Al hacer scroll hacia abajo → aparece suave */
/*.scrolling-down nav.fixed .nav-logo {
    opacity: 1;
    visibility: visible;
}*/

.nav-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-menu li {
    list-style: none;
}

.nav-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 12px;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

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

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

.nav-menu li:last-child a::after {
    content: none;
}

/* Logo dentro del menú hamburguesa */
.nav-menu-logo {
    display: none;
    justify-content: center;
    margin-bottom: 20px;
}

.nav-menu-logo img {
    max-width: 160px;
    height: auto;
}

/* Mostrar SOLO cuando el menú está abierto */
.nav-menu.active .nav-menu-logo {
    display: flex;
}


@media (min-width: 769px) {
    .nav-menu-logo {
        display: none !important;
    }
}


.cta-button {
    /*background-color: var(--azul);*/
    background: -webkit-linear-gradient(90deg, #66cbef, #315d6d);
    background: linear-gradient(90deg, #66cbef, #315d6d);

    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    margin-left: 20px;
    transition: var(--transition);
}

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

/* BOTÓN HAMBURGUESA (desktop oculto) */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    /*position: absolute;*/
    right: 20px;
}

.nav-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark);
    transition: all 0.3s ease-in-out;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    /* top:0; right:0; bottom:0; left:0; */
    background: rgba(0, 0, 0, 0.55);

    /* fondo oscurecido */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.6s ease;
    /* misma duración que el menú */
    z-index: 998;
    /* justo por debajo del menú */
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Hero Section */
.hero {
    /*background: linear-gradient(rgba(40, 85, 33, 0.85), rgba(80, 171, 65, 0.9)), url('https://placehold.co/1200x500/1a3c6c/ffffff?text=AAEECO') center/cover no-repeat;*/

    /*background: -webkit-linear-gradient(1deg, #436544, #50ab41, #436544),
        url('https://placehold.co/1200x500/1a3c6c/ffffff?text=AAEECO') center/cover no-repeat;
    background: linear-gradient(1deg, #436544e6, #50ab41d9, #436544e6),
        url('https://placehold.co/1200x500/1a3c6c/ffffff?text=AAEECO') center/cover no-repeat;*/

    background: -webkit-linear-gradient(0deg, #436544, #50ab41, #50ab41, #436544);
    background: linear-gradient(0deg, #436544e6, #50ab41d9, #50ab41d9, #436544e6),
        url('https://placehold.co/1200x500/1a3c6c/ffffff?text=AAEECO') center/cover no-repeat;


    color: white;
    text-align: center;
    padding: 50px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(255, 209, 102, 0.1) 0%, transparent 40%);
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 70%, rgba(230, 57, 70, 0.1) 0%, transparent 40%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 3.2rem;
    margin-bottom: 25px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero p {
    font-size: 1.4rem;
    margin: 0 auto 40px;
    position: relative;
    z-index: 2;
}

.focus-areas {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.focus-area {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.focus-area:hover {
    background-color: var(--azul);
    transform: translateY(-3px);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-dark), var(--accent), var(--secondary));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* --- HOME: bloque de 3 columnas (Noticias / Empleo / Ofertas) --- */

.home-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    /* 3 columnas iguales */
    column-gap: 0px;
    /* separación horizontal entre columnas */
    align-items: stretch;
    padding: 0rem 6rem 6rem 6rem;
    margin-right: 20px;
    margin-left: 20px;
}

/* Ofertas  */


/* Título un poco más pegado arriba en este bloque */
.home-columns .section-title {
    margin-bottom: 24px;
}

/* En Noticias queremos 1 card por fila bien anchita */
.home-columns .news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Main Content */
.section {
    margin-top: 5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark);
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    /*background-color: var(--azul);*/
    background: -webkit-linear-gradient(90deg, #66cbef, #50ab41);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(90deg, #66cbef, #50ab41);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

.section-title.gradient {
    color: transparent;
    background: linear-gradient(90deg, var(--primary-dark), var(--accent), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
}

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

.card-img {
    height: 200px;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.card-img::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, transparent 20%, rgba(255, 255, 255, 0.1) 70%, transparent 80%);
    transform: rotate(30deg);
    transition: transform 0.5s ease;
}

.card:hover .card-img::after {
    transform: rotate(30deg) scale(1.2);
}

.card-body {
    padding: 25px;
}

.card h3 {
    color: var(--dark);
    margin-bottom: 15px;
}

.card h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    /*background-color: var(--accent);*/

    background: -webkit-linear-gradient(90deg, #66cbef, #50ab41);
    background: linear-gradient(90deg, #66cbef, #50ab41);

    margin-top: 5px;
}

.card p {
    color: var(--gray);
    margin-bottom: 20px;
}

.btn {
    /*background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));*/
    background: var(--verde);
    color: white;
    padding: 8px 30px;
    text-decoration: none;
    /*border-radius: 50px;*/
    transition: var(--transition);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    /*box-shadow: 0 8px 20px rgba(42, 90, 158, 0.3);*/
    width: 100%;
    justify-content: center;
    display: flex;
}

.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0;
    /* Invisible por defecto */
    transition: opacity .3s ease;
}

.btn:hover::after {
    opacity: 0.2;
    /* Aclara sin sustituir el fondo */
}

.btn-secondary {
    /*background: linear-gradient(135deg, var(--secondary), #d62828);*/
    /*background: linear-gradient(135deg, var(--primary-dark), #50AB41);*/
    /*background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));*/

    /*background: -webkit-linear-gradient(90deg, #66cbef, #46983a);
    background: linear-gradient(90deg, #66cbef, #46983a);*/

    background: -webkit-linear-gradient(180deg, #50ab41, #193814);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(180deg, #50ab41, #193814);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

    box-shadow: 0 8px 20px rgba(80, 171, 65, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 15px 30px rgba(80, 171, 65, 0.5);
}

#btn-nuestros-servicios .btn {
    width: auto;
    display: inline-flex;
}

.btn-auto {
    width: auto;
    margin: 0 auto;
    display: inline-flex;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
}

.btn-asociate {
    display: flex;
    justify-content: center;
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    justify-items: center;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    width: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.news-img {
    height: 200px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* hace que la imagen llene el espacio sin deformarse */
    display: block;
}

.news-content {
    padding: 20px;
    line-height: normal;
}

.news-date {
    color: var(--azul);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.news-content h3 {
    color: var(--dark);
    margin-bottom: 10px;
}

/*--------  EMPLEO  ---------*/
.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Estadísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
    margin-bottom: 50px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--gray);
    font-weight: 600;
}

/* Pestañas */
.empleo-tabs {
    max-width: 900px;
    margin: 0 auto 50px;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    background: white;
    color: var(--primary-dark);
    border: 2px solid var(--primary-light);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab-btn:hover,
.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: white;
    border-color: transparent;
}

.tab-btn i {
    font-size: 0.9rem;
}

/*empleo */
.job-offers-grid {
    display: grid;
    gap: 25px;
    justify-items: center;
    font-size: 0.8rem;
}

.job-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    max-width: 280px;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.job-header {
    color: white;
    padding: 15px 20px;
    display: block;
}

.job-header-verde {
    background: linear-gradient(90deg, #50ab41, #193814);
}

.job-header-azul {
    background: linear-gradient(90deg, #66cbef, #315d6d);
}

/*.job-header-rojo {
    background: linear-gradient(90deg, #e63946, #9d0208);
}*/

.job-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.job-type {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.job-body {
    padding: 10px;
}

.job-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--azul);
    font-size: 0.95rem;
}

.job-description {
    color: var(--gray);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.tag-verde {
    background: #e9f7ef;
    color: var(--verde);
}

.tag-azul {
    background: #e6f4fc;
    color: var(--azul);
}

.tag-rojo {
    background: #fceaea;
    color: var(--secondary);
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.job-date {
    color: var(--gray);
    font-size: 0.9rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* ===== Bloque social en Ofertas Formativas ===== */

.social-box-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.social-box {
    /*background: white;*/
    padding: 22px 20px;
    border-radius: 10px;
    /*box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);*/
    text-align: center;
}

.social-box-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 18px;
    color: var(--primary-dark);
}

.social-box-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 0;
    margin: 0;
}

/* ===== Colores corporativos de redes sociales ===== */

.social-box-list li a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: 0.25s ease;
    text-decoration: none;
}

/* FACEBOOK */
.social-box-list li a.facebook {
    background-color: #1877F2;
}

.social-box-list li a.facebook:hover {
    background-color: #0b5bd3;
    transform: translateY(-3px);
}

/* X (Twitter) */
.social-box-list li a.x {
    background-color: #000000;
}

.social-box-list li a.x i {
    color: #ffffff;
}

.social-box-list li a.x:hover {
    filter: brightness(1.12);
    transform: translateY(-3px);
}


/* INSTAGRAM — Gradiente oficial actualizado */
.social-box-list li a.instagram {
    background: linear-gradient(45deg,
            #feda75 0%,
            /* amarillo */
            #fa7e1e 25%,
            /* naranja */
            #d62976 50%,
            /* fucsia */
            #962fbf 75%,
            /* púrpura */
            #4f5bd5 100%
            /* azul */
        );
}

.social-box-list li a.instagram:hover {
    filter: brightness(1.12);
    transform: translateY(-3px);
}


/* LINKEDIN */
.social-box-list li a.linkedin {
    background-color: #0A66C2;
}

.social-box-list li a.linkedin:hover {
    background-color: #004182;
    transform: translateY(-3px);
}


/* Facebook block adapta tamaño */
.fb-box {
    min-height: 280px;
}


/* Responsive */
@media (max-width: 768px) {
    .social-box-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Recursos profesionales */
.empleo-resources {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-top: 40px;
}

.resources-title {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 700;
}

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

.resource-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: var(--transition);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.resource-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.primary-icon {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
}

.verde-icon {
    background: linear-gradient(135deg, #50ab41, #193814);
}

.azul-icon {
    background: linear-gradient(135deg, var(--azul), #315d6d);
}

.resource-icon i {
    color: white;
    font-size: 1.8rem;
}

.resource-card h4 {
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.resource-card p {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.btn-outline {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary-light);
    padding: 8px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

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

/* CTA final */
.empleo-cta {
    text-align: center;
    margin-top: 50px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(80, 171, 65, 0.1), rgba(102, 203, 239, 0.1));
    border-radius: 12px;
}

.empleo-cta h3 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.empleo-cta p {
    max-width: 700px;
    margin: 0 auto 25px;
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.6;
}

/*---------------------------*/
/* ====== CARRUSEL ESCUELA OCIO Y TIEMPO LIBRE ====== */

.cta-carousel-card {
    max-width: 700px;
    margin: 2rem auto 2.5rem;
    /*background: rgba(255, 255, 255, 0.08);*/
    background: var(--light);
    border-radius: 12px;
    padding: 2rem 2.5rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    text-align: left;
}

.cta-carousel-track {
    position: relative;
    overflow: hidden;
}

.cta-slide {
    display: none;
    animation: ctaFadeIn 0.4s ease-out;
}

.cta-slide.active {
    display: block;
}

.cta-slide-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
    text-align: center;
}

.cta-slide-text {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.cta-slide-list {
    padding-left: 1.1rem;
    font-size: 0.9rem;
    color: var(--dark);
}

.cta-slide-list li {
    margin-bottom: 0.3rem;
}

/* Controles del carrusel centrados debajo del card */
.cta-carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.cta-carousel-btn {
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    color: var(--dark);
    padding: 0.4rem 1.6rem;
    border-radius: 999px;
    font-size: 1.8rem;
    cursor: pointer;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-carousel-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

/* Pequeña animación para el cambio de slide */
@keyframes ctaFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

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

/* ===== Puntos del carrusel ===== */
.cta-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 1rem 0 1.5rem;
}

.cta-carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(144, 144, 144, 0.7);
    background: transparent;
    cursor: pointer;
    transition: all 0.25s ease;
}

.cta-carousel-dots .dot.active {
    background: #436644;
    border-color: #ffffff;
    transform: scale(1.2);
}

.cta-carousel-dots .dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

/*------------------------------------------------------------------------------------*/

/* Courses Section */
.courses-list {
    display: grid;
    gap: 25px;
    justify-items: center;
    font-size: 0.8rem;
}

.course-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    transition: var(--transition);
    max-width: 280px;
}

/* Efecto de aumento suave en tarjetas de servicios/cursos */
.course-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
}

/*--------------------- Servicios ------------------*/
.columnas-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 25px;
    max-width: calc(4 * 300px + 3 * 25px);
    /* 4 columnas + 3 gaps */
    margin: 0 auto;
    /* centrar cuando llegue al máximo */
}

.card-servicios {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    transition: var(--transition);

    display: grid;
    grid-template-rows: auto 1fr auto;
    /*titulo | descricion | boton*/
    height: 100%;
}

/* Efecto de aumento suave en tarjetas de servicios/cursos */
.card-servicios:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
}

#h3-section {
    text-transform: uppercase;
}

.p-servicios {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    /* nº de líneas máximo */
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
    white-space: normal;
}

#btn-servicios-home {
    margin-top: 20px;
    display: flex;
    justify-self: flex-start;
    align-items: center;
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.course-title {
    color: var(--dark);
    margin: 0;
}

.course-title::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    /*background-color: var(--accent);*/

    background: -webkit-linear-gradient(90deg, #66cbef, #50ab41);
    background: linear-gradient(90deg, #66cbef, #50ab41);

    margin-top: 5px;
    transition: width 0.3s ease;
}

.course-card:hover .course-title::after {
    width: 229px;
}

.card-servicios:hover .course-title::after {
    width: 200px;
}

.card:hover h3::after {
    width: 200px;
}

.course-meta {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    color: var(--gray);
    font-size: 0.9rem;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/*------------ sobre nosotros---------------*/
/* Call to Action */
.cta-section {
    /*background: linear-gradient(to right, var(--primary-dark), var(--primary-light));*/
    background: -webkit-linear-gradient(90deg, #436544, #50ab41, #436544);
    background: linear-gradient(90deg, #436544, #50ab41, #436544);
    color: var(--light);
    text-align: center;
    padding: 40px 20px;
}

.cta-section h2 {
    margin-bottom: 20px;
}

.cta-section p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.cta-btn {
    /*background-color: white;*/
    /*background: linear-gradient(90deg, #66cbef, #315d6d);*/
    background: var(--light);
    color: var(--dark);
    padding: 15px 30px;
    border-radius: 4px;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Contact Form Section */
.contact-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(26, 60, 108, 0.03) 0%, transparent 30%);
    z-index: 0;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.contact-info h3 {
    color: var(--dark);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.contact-info p {
    margin-bottom: 30px;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.contact-details i {
    color: var(--verde);
    margin-right: 10px;
    margin-top: 5px;
}

.form-container {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 3px rgba(42, 90, 158, 0.2);
}

textarea.form-control {
    min-height: 120px;
}

.submit-btn {
    /*background-color: var(--secondary);*/
    background: linear-gradient(180deg, #50ab41, #193814);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}

.submit-btn:hover {
    background-color: #d62828;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: white;
    color: var(--dark);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.logo-footer {
    display: flex;
    justify-content: center;
}

.logo-footer img {
    border-radius: 15px;
    height: 150px;
}

.footer-column p {
    text-align: center;
}

footer p {
    margin-top: 20px;
}

.footer-column h3 {
    color: var(--dark);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    /*background-color: var(--primary-light);*/
    background: linear-gradient(90deg, #66cbef, #50ab41);
}

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

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

.footer-links a {
    /*color: #ddd;*/
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--verde);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.9rem;
}

/*---------------------MEDIA QUERY---------------------------*/

/* ============================================
   MEDIA QUERIES
   ============================================ */

@media (min-width: 769px) and (max-width: 808px) {
    .nav-menu a {
        font-size: 0.75rem;
        /* ajusta el tamaño que quieras */
    }
}

/* <= 1243px */
@media (max-width: 1243px) {
    /*.nav-menu a {
        font-size: 0.8rem;
    }*/
}

/* <= 1110px */
@media (max-width: 1110px) {
    /*.nav-menu a {
        font-size: 0.6rem;
    }*/
}

/* <= 1024px  - HOME: .home-columns apilado + carruseles */
@media (max-width: 1024px) {

    /* 1) Estructura principal: una sección debajo de otra */
    .home-columns {
        display: block;
        /* dejamos de usar grid aquí */
        padding: 2rem 1.25rem 3rem;
    }

    .home-columns>.section {
        margin-top: 0;
        margin-bottom: 50px;
        /* separación entre bloques */
    }

    /* 2) NOTICIAS → CARRUSEL HORIZONTAL */
    .home-columns .news-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 16px;
        padding-bottom: 10px;

        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .home-columns .news-grid::-webkit-scrollbar {
        display: none;
    }

    .home-columns .news-card {
        flex: 0 0 85%;
        max-width: 85%;
        scroll-snap-align: center;
    }

    /* 3) EMPLEO → CARRUSEL HORIZONTAL */
    .home-columns .job-offers-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 16px;
        padding-bottom: 10px;

        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }

    .home-columns .job-offers-grid::-webkit-scrollbar {
        display: none;
    }

    .home-columns .job-card {
        flex: 0 0 85%;
        max-width: 85%;
        scroll-snap-align: center;
    }

    /* 4) OFERTAS FORMATIVAS → CARRUSEL HORIZONTAL */
    .home-columns .courses-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 16px;
        padding-bottom: 10px;

        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }

    .home-columns .courses-list::-webkit-scrollbar {
        display: none;
    }

    .home-columns .course-card {
        flex: 0 0 85%;
        max-width: 85%;
        scroll-snap-align: center;
    }

    /* 5) OFERTAS FORMATIVAS → CARRUSEL HORIZONTAL */
    .grid-oferta-formativa {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 16px;
        padding-bottom: 10px;

        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }

    /* Ocultar scrollbar */
    .grid-oferta-formativa::-webkit-scrollbar {
        display: none;
    }

    /* Cada card como slide */
    .grid-oferta-formativa .course-card {
        flex: 0 0 85%;
        max-width: 85%;
        scroll-snap-align: center;
    }

    /* 6) NUESTROS SERVICIOS → CARRUSEL HORIZONTAL */
    .columnas-servicios {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 16px;
        padding-bottom: 10px;

        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }

    /* Ocultar scrollbar */
    .columnas-servicios::-webkit-scrollbar {
        display: none;
    }

    /* Cada servicio como slide */
    .columnas-servicios .card-servicios {
        flex: 0 0 85%;
        max-width: 85%;
        scroll-snap-align: center;
    }

}

/* <= 768px  - Responsive móvil (header, nav hamburguesa, contacto) */
@media (max-width: 768px) {

    .job-offers-grid {
        grid-template-columns: 1fr;
    }

    .tab-buttons {
        flex-direction: column;
        align-items: center;
    }

    .tab-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .job-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .home-columns {
        margin-right: 0px;
        margin-left: 0px;
    }

    .cta-carousel-card {
        padding: 1.5rem;
    }

    .cta-slide-title {
        font-size: 1.2rem;
    }

    /* Oculta la franja superior totalmente */
    .header-top {
        display: none !important;
    }

    /* El nav se queda solo para el menú lateral, sin barra verde */
    header>nav {
        height: 0;
        min-height: 0;
        padding: 0;
        margin: 0;
        overflow: visible;
        /* IMPORTANTE */
        background: transparent;
        box-shadow: none;
    }

    /* Si no quieres el logo pequeño del nav en móvil */
    header>nav .nav-logo {
        display: none !important;
    }

    .header-top-content {
        display: none;
    }

    /* columna 2 y 3 */
    .text-col,
    .btn-col {
        display: none;
    }

    /* columna 1 */
    .img-col {
        flex: 0 0 auto;
    }

    .logo-col {
        margin-left: 40px;
    }

    .logo-container {
        /*justify-content: flex-end;
         hamburguesa a la derecha */
    }

    .logo-mobile-left {
        display: flex;
        align-items: center;
    }

    .logo-mobile-left img {
        height: 80px;
        width: auto;
    }

    .nav-toggle {
        display: block;
        position: relative;
        z-index: 2000;
    }

    .logo-text h1 {
        font-size: 1.3rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .nav-menu {
        /* ocultamos menú de escritorio */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;

        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 250px;

        background: -webkit-linear-gradient(180deg, #459938, #34732b, #2a5d22, #23491d, #10200e);
        background: linear-gradient(180deg, #459938, #34732b, #2a5d22, #23491d, #10200e);

        padding: 40px 10px;
        box-shadow: none;
        z-index: 1001;

        cursor: pointer;

        /* transiciones para animación desde la derecha */
        transform: translateX(100%);
        transition: transform 0.6s ease;
    }

    .nav-menu.active {
        transform: translateX(0);
        box-shadow: -50px 0 100px rgba(0, 0, 0, 0.5);

    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        font-size: 1rem;
        width: 100%;
        padding: 14px 20px;
    }

    .nav-menu a:hover {
        background-color: rgb(247, 247, 245, 0.1);
        transform: translateX(8px);
        opacity: 1;
    }

    .nav-menu a::after {
        content: "";
        position: absolute;
        left: 20px;
        bottom: 8px;
        width: 0;
        height: 2px;
        background: var(--accent);
        transition: width 0.3s ease;
    }

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

    .nav-menu-logo img {
        border-radius: 40px;
        -webkit-border-radius: 40px;
        -moz-border-radius: 40px;
        -ms-border-radius: 40px;
        -o-border-radius: 40px;
    }

    .cta-button {
        margin-left: 0;
        margin: 0 auto;
        /* centrado horizontal */
        align-items: center;
        /* centrado vertical */
        text-align: center;
    }

    /* X fuera del menú, pegada al borde izquierdo */
    .nav-toggle.active {
        position: fixed;
        top: 20px;
        /* ancho del menú (250px) + separación */
        right: 270px;
        z-index: 2002;
    }

    /* Ocultar logo móvil cuando el menú está abierto */
    .logo-container.menu-open .logo-mobile-left {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .logo-mobile-left {
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }


    .nav-toggle.active .bar {
        background-color: var(--dark);
    }

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

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

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

    .contact-info span {
        display: block;
        margin: 5px 0;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .focus-areas {
        justify-content: flex-start;
        /* Empieza a la izquierda */
        flex-wrap: nowrap;
        /* Todos en una sola fila */
        overflow-x: auto;
        /* Scroll horizontal con el dedo */
        gap: 10px;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
        /* Scroll con “encaje” por elemento */
        -webkit-overflow-scrolling: touch;
        /* Suavidad en iOS */
    }

    .focus-areas::-webkit-scrollbar {
        display: none;
        /* Ocultar barra en móviles WebKit */
    }

    .focus-area {
        flex: 0 0 auto;
        /* Que no se encojan */
        scroll-snap-align: center;
        /* Cada chip se centra al soltar */
        white-space: nowrap;
        /* Que no se parta en dos líneas */
        min-width: 70%;
        /* Ocupa buena parte del ancho */
        text-align: center;
    }

    .pulse {
        animation: none;
        -webkit-animation: none;
    }
}

/* >= 769px  - SOLO ESCRITORIO: header fijo y shrink */
@media (min-width: 769px) {

    .logo-mobile-left,
    .nav-toggle {
        display: none !important;
    }

    .nav-menu a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
    }

    /* Header siempre fijo arriba */
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        transition: padding 0.3s ease;
    }

    /* Transiciones lentas para las partes superiores */
    .header-top,
    .logo-container {
        transition:
            max-height 1.8s cubic-bezier(0.25, 0.1, 0.25, 1),
            opacity 1.8s cubic-bezier(0.25, 0.1, 0.25, 1),
            padding 1.8s cubic-bezier(0.25, 0.1, 0.25, 1),
            margin 1.8s cubic-bezier(0.25, 0.1, 0.25, 1);
    }

    /* ESTADO ENC0GIDO: oculta barra top + logo */
    header.header-shrink .header-top,
    header.header-shrink .logo-container {
        max-height: 0;
        opacity: 0;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin: 0 !important;
        overflow: hidden;
    }

    /* Sombra en el nav cuando está encogido */
    header.header-shrink nav {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    }
}