/* ==================== VARIABLES GLOBALES ==================== */
:root {
    --color-primary: #122D63;      /* Azul principal */
    --color-primary-dark: #0A1B3F;
    --color-primary-soft: #EAF0FA;
    --color-secondary: #ffffff;
    --color-accent: #f26a21;       /* Naranja secundario */
    --color-accent-dark: #c84f12;
    --color-accent-soft: #FFF0E7;
    --color-light-gray: #f5f7fb;
    --color-dark-gray: #18233A;
    --color-text: #4f5f73;
    --color-muted: #7a8798;
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* ==================== ESTILOS GLOBALES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background-color: var(--color-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ==================== HEADER COMPACTO ==================== */
header {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(10, 27, 63, 0.18);
    transition: all 0.3s ease;
}

header.header-scrolled {
    padding: 8px 0;
    box-shadow: 0 12px 30px rgba(10, 27, 63, 0.22);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title{
    color: var(--color-primary);
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1px;

}

.textoo{
    color: var(--color-text);
    font-size: 16px;
    text-align: center;
    margin-top: 30px;
    
}

/* ==================== LOGO ==================== */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    isolation: isolate;
    text-decoration: none;
    cursor: pointer;
    outline: none;
}

.logo::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 18px;
    background: radial-gradient(circle at 50% 50%, rgba(242, 106, 33, 0.28), rgba(255, 255, 255, 0));
    opacity: 0;
    transform: scale(0.82);
    transition: opacity 0.28s ease, transform 0.28s ease;
    z-index: -1;
    pointer-events: none;
}

.logo:hover::after,
.logo:focus-visible::after {
    opacity: 1;
    transform: scale(1);
}

/* IMAGEN DEL LOGO */
.logo-img {
    height: 180px; /* 👈 controlas tamaño SIN tocar header */
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.logo:hover .logo-img,
.logo:focus-visible .logo-img {
    transform: translateY(-2px) scale(1.04);
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
}

/* TEXTO */
.logo-text {
    font-size: 18px;
    font-weight: bold;
    color: var(--color-secondary);
}

/* SCROLL */
header.header-scrolled .logo-img {
    height: 50px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .logo-img {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 40px;
    }
}
header.header-scrolled .logo-text {
    font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
    .logo::after,
    .logo-img {
        transition: none;
    }

    .logo:hover .logo-img,
    .logo:focus-visible .logo-img {
        transform: none;
    }
}

/* MENÚ HAMBURGUESA */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-secondary);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* NAVEGACIÓN */
.navbar {
    display: flex;
    gap: 0;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 0;
    align-items: center;
}

.nav-link {
    color: var(--color-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 16px;
    display: block;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: var(--border-radius);
}

.nav-item {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: var(--color-secondary);
    cursor: pointer;
    font: inherit;
}

.dropdown-toggle::after {
    content: '▾';
    margin-left: 6px;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.nav-item:hover .dropdown-toggle::after,
.nav-item:focus-within .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1000;
}

.dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

.dropdown-link {
    display: block;
    padding: 12px 16px;
    color: var(--color-dark-gray);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.dropdown-link:hover {
    background-color: var(--color-light-gray);
}

@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background-color: transparent;
        box-shadow: none;
    }

    .dropdown-link {
        color: var(--color-secondary);
    }
}

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

.nav-link:hover::after {
    width: 60%;
}

/* ==================== RESPONSIVE HEADER ==================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(160deg, var(--color-primary-dark), var(--color-primary));
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        padding-left: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .navbar.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-link {
        padding: 16px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }

    .nav-link::after {
        display: none;
    }
}

/* ==================== SLIDER HERO SECTION ==================== */
.hero {
    background-color: var(--color-primary-soft);
    padding: 0 0 40px;
    margin-top: 0;
}

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

/* ==================== LOGO ADAPTABLE ==================== */
/* ==================== LOGO ==================== */
.logo {
    width: 135px; /* 👈 LOGO MÁS GRANDE */
    height: 100px; /* 👈 altura específica */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 65px; /* 👈 más alto para que respire mejor */
}

/* IMAGEN DEL LOGO */
.logo-img {
    width: 100px; 
}



/* ==================== SCROLL (HEADER PEQUEÑO) ==================== */
header.header-scrolled .logo {
    height: 50px;
}

header.header-scrolled .logo-img {
    width: 50px;
}

header.header-scrolled .logo-text {
    font-size: 15px;
}

/* ==================== RESPONSIVE ==================== */

/* Tablet */
@media (max-width: 768px) {
    .logo {
        height: 55px;
        gap: 10px;
    }

    .logo-img {
        width: 55px;
    }

    .logo-text {
        font-size: 16px;
    }
}

/* Móvil */
@media (max-width: 480px) {
    .logo {
        height: 45px;
        gap: 8px;
    }

    .logo-img {
        width: 45px;
    }

    .logo-text {
        font-size: 14px;
    }
}

.slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* OVERLAY NARANJA EN EL SLIDER */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    text-align: center;
    padding: 40px;
    z-index: 10;
}

.slide-overlay h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 16px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
}

.slide-overlay p {
    font-size: 18px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* BOTONES SLIDER */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(242, 106, 33, 0.9);
    color: var(--color-secondary);
    border: none;
    padding: 12px 16px;
    font-size: 20px;
    cursor: pointer;
    z-index: 100;
    transition: var(--transition);
    border-radius: 4px;
    user-select: none;
}

.slider-btn:hover {
    background-color: var(--color-accent-dark);
    padding: 12px 20px;
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

/* INDICADORES (PUNTOS) */
.slider-dots,
.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 100;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.dot.active {
    background-color: var(--color-accent);
    width: 32px;
    border-radius: 6px;
    transform: scale(1.1);
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* RESPONSIVE SLIDER */
@media (max-width: 1024px) {
    .slider {
        height: 400px;
    }

    .slide-overlay h1 {
        font-size: 36px;
    }

    .slide-overlay p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .slider {
        height: 300px;
    }

    .slide-overlay h1 {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .slide-overlay p {
        font-size: 14px;
    }

    .slide-overlay {
        padding: 20px;
    }

    .slider-btn {
        padding: 10px 12px;
        font-size: 16px;
    }

    .slider-btn.prev {
        left: 10px;
    }

    .slider-btn.next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .slider {
        height: 220px;
    }

    .slide-overlay h1 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .slide-overlay p {
        font-size: 12px;
    }

    .slider-btn {
        padding: 8px 10px;
        font-size: 14px;
    }

    .slider-dots,
    .slider-indicators {
        bottom: 10px;
        gap: 8px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .dot.active {
        width: 24px;
    }
}

/* ==================== FORMULARIO SIMPLIFICADO ==================== */
.search-form-container {
    padding: 40px var(--spacing-md) 60px;
    background-color: var(--color-secondary);
}

.search-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: center;
}

.form-group {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-select {
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-family: var(--font-family);
    background-color: var(--color-secondary);
    color: var(--color-dark-gray);
    cursor: pointer;
    transition: var(--transition);
}

.form-select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(242, 106, 33, 0.16);
}

.btn-search {
    padding: 12px 32px;
    background-color: var(--color-accent);
    color: var(--color-secondary);
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 150px;
}

.btn-search:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(242, 106, 33, 0.28);
}

.btn-search:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
    }

    .form-group {
        width: 100%;
        min-width: unset;
    }

    .btn-search {
        width: 100%;
    }
}

/* ==================== SECCIÓN PROYECTOS ==================== */
.projects {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-secondary);
}

.projects h2 {
    font-size: 36px;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 12px;
    font-weight: bold;
}

.section-subtitle {
    text-align: center;
    color: var(--color-muted);
    margin-bottom: var(--spacing-xxl);
    font-size: 16px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 360px));
    gap: var(--spacing-lg);
    justify-content: center;
}

.project-card {
    background-color: var(--color-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(18, 45, 99, 0.08);
    box-shadow: 0 14px 36px rgba(18, 45, 99, 0.09);
    animation: slideIn 0.6s ease-out;
}

.project-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 44px rgba(18, 45, 99, 0.16);
}

.project-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    position: relative;
    overflow: hidden;
}

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

.project-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--color-accent);
    color: var(--color-secondary);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.project-info {
    padding: var(--spacing-lg);
}

.project-location {
    font-size: 12px;
    color: var(--color-accent-dark);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.project-name {
    font-size: 18px;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.project-description {
    font-size: 14px;
    color: var(--color-text);
    margin-bottom: 12px;
}

.project-price {
    font-size: 16px;
    font-weight: bold;
    color: var(--color-accent-dark);
}

/* ==================== SECCIÓN ACCESOS NOSOTROS ==================== */
.site-paths-section {
    padding: 64px 0;
    background:
        linear-gradient(180deg, var(--color-light-gray) 0%, #fff 100%);
}

.site-paths-heading {
    max-width: 780px;
    margin: 0 auto 34px;
    text-align: center;
}

.site-paths-heading span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-accent);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-paths-heading span::before,
.site-paths-heading span::after {
    content: "";
    width: 34px;
    height: 2px;
    background: currentColor;
}

.site-paths-heading h2 {
    max-width: 720px;
    margin: 14px auto 10px;
    color: var(--color-primary-dark);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    line-height: 1.12;
}

.site-paths-heading p {
    margin: 0;
    color: var(--color-text);
    font-size: 16px;
}

.site-paths-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.site-path-card {
    display: grid;
    grid-template-columns: minmax(180px, 42%) 1fr;
    min-height: 290px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: var(--color-secondary);
    border: 1px solid rgba(18, 45, 99, 0.1);
    border-radius: var(--border-radius);
    box-shadow: 0 18px 40px rgba(18, 45, 99, 0.1);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.site-path-card:hover,
.site-path-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(242, 106, 33, 0.38);
    box-shadow: 0 24px 54px rgba(18, 45, 99, 0.16);
    outline: none;
}

.site-path-media {
    margin: 0;
    min-height: 100%;
    overflow: hidden;
    background: var(--color-primary-dark);
}

.site-path-media img {
    width: 100%;
    height: 100%;
    min-height: 290px;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.site-path-card:hover .site-path-media img,
.site-path-card:focus-visible .site-path-media img {
    transform: scale(1.04);
}

.site-path-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 30px;
}

.site-path-content::before {
    content: "";
    position: absolute;
    top: 30px;
    left: 30px;
    width: 52px;
    height: 3px;
    background: var(--color-accent);
}

.site-path-content span {
    width: 42px;
    height: 42px;
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    border-radius: 8px;
    font-size: 14px;
    font-weight: 900;
}

.site-path-content h3 {
    margin: 0;
    color: var(--color-primary);
    font-size: 26px;
    line-height: 1.14;
}

.site-path-content p {
    margin: 0;
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.65;
}

.site-path-content strong {
    margin-top: 4px;
    color: var(--color-accent-dark);
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (max-width: 980px) {
    .site-paths-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .site-paths-section {
        padding: 48px 0;
    }

    .site-paths-heading {
        margin-bottom: 24px;
    }

    .site-paths-heading span::before,
    .site-paths-heading span::after {
        width: 22px;
    }

    .site-path-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .site-path-media img {
        min-height: 220px;
        aspect-ratio: 16 / 10;
    }

    .site-path-content {
        padding: 24px;
    }

    .site-path-content::before {
        top: 24px;
        left: 24px;
    }
}

/* ==================== SECCIÓN SOLUCIONES ==================== */
.solutions {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-light-gray);
}

.solutions h2 {
    font-size: 36px;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: var(--spacing-xxl);
    font-weight: bold;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.solution-card {
    position: relative;
    height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(18, 45, 99, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: slideIn 0.6s ease-out;
}

.solution-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 46px rgba(18, 45, 99, 0.2);
}

.solution-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.solution-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.solution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s ease, filter 0.55s ease;
}

.solution-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, rgba(10, 27, 63, 0.88) 0%, rgba(18, 45, 99, 0.58) 48%, rgba(10, 27, 63, 0.82) 100%),
        linear-gradient(135deg, rgba(242, 106, 33, 0.34), rgba(242, 106, 33, 0) 44%);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--color-secondary);
    opacity: 0;
    padding: 34px;
    isolation: isolate;
    transition: opacity 0.35s ease;
}

.solution-overlay::before {
    content: "";
    position: absolute;
    top: 28px;
    bottom: 28px;
    left: 24px;
    width: 4px;
    border-radius: 999px;
    background: var(--color-accent);
    box-shadow: 0 0 24px rgba(242, 106, 33, 0.38);
    transform: scaleY(0.2);
    transform-origin: bottom;
    transition: transform 0.35s ease;
    z-index: 1;
}

.solution-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 0 38%, rgba(255, 255, 255, 0.16) 45%, transparent 54%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 35%);
    transform: translateX(-32%);
    transition: transform 0.55s ease;
    z-index: 0;
}

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

.solution-card:hover .solution-image img {
    transform: scale(1.06);
    filter: saturate(0.92) contrast(1.04);
}

.solution-card:hover .solution-overlay::before {
    transform: scaleY(1);
}

.solution-card:hover .solution-overlay::after {
    transform: translateX(18%);
}

.solution-overlay h3 {
    font-size: 24px;
    font-weight: bold;
    line-height: 1.15;
    max-width: 92%;
    padding-left: 18px;
    text-align: left;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
    transform: translateY(10px);
    transition: transform 0.35s ease;
    position: relative;
    z-index: 2;
}

.solution-card:hover .solution-overlay h3 {
    transform: translateY(0);
}

/* ==================== SECCIÓN REELS ==================== */
.social-reels {
    position: relative;
    padding: 64px 0 54px;
    background:
        linear-gradient(180deg, rgba(18, 45, 99, 0.08), rgba(18, 45, 99, 0) 28%),
        linear-gradient(135deg, #eef7f7 0%, #f7fbfb 52%, #e9f3f4 100%);
    overflow: hidden;
}

.social-reels::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(18, 45, 99, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(18, 45, 99, 0.06) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.28;
    pointer-events: none;
}

.social-reels::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
}

.social-reels .container {
    position: relative;
    z-index: 1;
}

.reels-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.reels-header::after {
    content: "Contenido reciente";
    flex: 0 0 auto;
    padding: 9px 14px;
    border: 1px solid rgba(18, 45, 99, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 10px 22px rgba(18, 45, 99, 0.08);
}

.reels-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.reels-instagram-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    padding: 10px;
    border-radius: 14px;
    fill: var(--color-secondary);
    background: linear-gradient(145deg, #f26a21, #d20a16);
    box-shadow: 0 14px 28px rgba(242, 106, 33, 0.24);
}

.reels-header h2 {
    color: var(--color-primary);
    font-size: 38px;
    font-weight: 800;
    line-height: 1.12;
    max-width: 850px;
}

.reels-strip {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(326px, 360px);
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    padding: 10px 2px 18px;
    scrollbar-width: thin;
    scrollbar-color: rgba(18, 45, 99, 0.42) rgba(255, 255, 255, 0.65);
}

.reels-strip::-webkit-scrollbar {
    height: 10px;
}

.reels-strip::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.65);
    border-radius: 999px;
}

.reels-strip::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 999px;
}

.instagram-reel {
    min-height: 520px;
    border-radius: 8px;
    overflow: hidden;
    scroll-snap-align: start;
    background: var(--color-secondary);
    border: 1px solid rgba(18, 45, 99, 0.1);
    box-shadow: 0 18px 38px rgba(18, 45, 99, 0.14);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.instagram-reel:hover {
    transform: translateY(-5px);
    border-color: rgba(242, 106, 33, 0.36);
    box-shadow: 0 24px 48px rgba(18, 45, 99, 0.2);
}

.instagram-reel .instagram-media {
    min-width: 0 !important;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

.reel-card {
    position: relative;
    width: 100%;
    min-height: 360px;
    aspect-ratio: 9 / 16;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    color: var(--color-secondary);
    text-decoration: none;
    border: 0;
    scroll-snap-align: start;
    background: var(--color-primary-dark);
    box-shadow: 0 16px 34px rgba(18, 45, 99, 0.16);
    cursor: pointer;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.reel-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 27, 63, 0.16), transparent 36%),
        linear-gradient(0deg, rgba(10, 27, 63, 0.72), transparent 44%);
    z-index: 1;
    transition: background 0.28s ease;
}

.reel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.reel-card:hover,
.reel-card:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 22px 44px rgba(18, 45, 99, 0.22);
    outline: none;
}

.reel-card:hover img,
.reel-card:focus-visible img {
    transform: scale(1.05);
    filter: saturate(1.04) contrast(1.03);
}

.reel-card:hover::before,
.reel-card:focus-visible::before {
    background:
        linear-gradient(180deg, rgba(242, 106, 33, 0.22), transparent 36%),
        linear-gradient(0deg, rgba(10, 27, 63, 0.78), transparent 48%);
}

.reel-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(10, 27, 63, 0.72);
    color: var(--color-secondary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.reel-play {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.reel-play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 53%;
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 13px solid var(--color-accent);
    transform: translate(-50%, -50%);
}

.reel-card-copy {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 74px;
    z-index: 2;
    display: grid;
    gap: 4px;
}

.reel-card-copy strong {
    color: #fff;
    font-size: 18px;
    line-height: 1.18;
}

.reel-card-copy small {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 700;
}

.reel-loading {
    min-height: 520px;
    display: grid;
    place-items: center;
    padding: 24px;
    color: var(--color-primary);
    background: #fff;
    font-weight: 800;
}

.reel-fallback-link {
    min-height: 520px;
}

.reels-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(18, 45, 99, 0.12);
}

.reels-contact-btn,
.reels-follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.reels-contact-btn {
    background: var(--color-secondary);
    color: var(--color-accent-dark);
    border: 2px solid var(--color-primary-dark);
    box-shadow: 0 10px 22px rgba(18, 45, 99, 0.08);
}

.reels-follow-btn {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-secondary);
    box-shadow: 0 12px 26px rgba(18, 45, 99, 0.16);
}

.reels-contact-btn:hover,
.reels-follow-btn:hover,
.reels-contact-btn:focus-visible,
.reels-follow-btn:focus-visible {
    transform: translateY(-2px);
}

.reels-contact-btn:hover,
.reels-contact-btn:focus-visible {
    color: var(--color-secondary);
    background: var(--color-primary-dark);
}

.reels-follow-btn:hover,
.reels-follow-btn:focus-visible {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    box-shadow: 0 14px 28px rgba(242, 106, 33, 0.22);
}

@media (max-width: 768px) {
    .social-reels {
        padding: 44px 0 38px;
    }

    .reels-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 24px;
    }

    .reels-header::after {
        font-size: 12px;
        padding: 8px 12px;
    }

    .reels-title-group {
        align-items: flex-start;
    }

    .reels-instagram-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        padding: 7px;
        border-radius: 10px;
    }

    .reels-header h2 {
        font-size: 28px;
    }

    .reels-strip {
        grid-auto-columns: minmax(300px, 86vw);
    }

    .reels-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .reels-contact-btn,
    .reels-follow-btn {
        flex: 1 1 180px;
    }
}

/* ==================== VIDEO DESTACADO ==================== */
.featured-video-section {
    background: var(--color-primary-dark);
    padding: 0;
}

.featured-video-frame {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    background: var(--color-primary-dark);
}

.featured-video {
    width: 100%;
    height: auto;
    max-height: 90vh;
    display: block;
    object-fit: contain;
    background: var(--color-primary-dark);
}

.video-sound-prompt {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 5;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    color: #fff;
    background: linear-gradient(145deg, var(--color-accent), var(--color-accent-dark));
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    box-shadow: 0 14px 28px rgba(10, 27, 63, 0.28);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
}

.video-sound-prompt:hover,
.video-sound-prompt:focus-visible {
    outline: 3px solid rgba(242, 106, 33, 0.28);
    outline-offset: 4px;
    filter: brightness(1.04);
}

@media (max-width: 768px) {
    .featured-video-section {
        padding: 0;
    }

    .featured-video {
        max-height: 78vh;
        object-fit: contain;
    }

    .video-sound-prompt {
        width: min(86vw, 320px);
        bottom: 18px;
    }
}

/* ==================== SECCIÓN NOSOTROS ==================== */
.about {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
}

.about h2 {
    font-size: 36px;
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
    font-weight: bold;
}

.about p {
    font-size: 16px;
    color: var(--color-text);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xxl);
}

.stat-item h3 {
    font-size: 32px;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.stat-item p {
    font-size: 14px;
    color: var(--color-text);
}

.about-image {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

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

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 300px;
    }

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

/* ==================== SECCIÓN CONTACTO ==================== */
.contact {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-light-gray);
}

.contact h2 {
    font-size: 36px;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: var(--spacing-xxl);
    font-weight: bold;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: var(--spacing-lg);
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-family: var(--font-family);
    color: var(--color-dark-gray);
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(242, 106, 33, 0.16);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0 0;
}

.btn-secondary {
    padding: 14px 32px;
    background-color: var(--color-primary);
    color: var(--color-secondary);
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.contacts-panel {
    background-color: var(--color-secondary);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.contacts-table-wrapper {
    overflow-x: auto;
}

.contacts-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--spacing-md);
}

.contacts-table th,
.contacts-table td {
    padding: 14px 16px;
    border: 1px solid #e6e6e6;
    text-align: left;
    font-size: 14px;
}

.contacts-table th {
    background-color: #f9f9f9;
}

.hidden {
    display: none;
}

/* ==================== BOTONES GLOBALES ==================== */
.btn-primary {
    padding: 14px 32px;
    background-color: var(--color-accent);
    color: var(--color-secondary);
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.btn-primary:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(242, 106, 33, 0.28);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ==================== FOOTER ==================== */
footer {
    background-color: var(--color-primary-soft);
    color: var(--color-dark-gray);
    padding: 46px 0 22px;
}

.footer-icons {
    display: none;
}

.footer-title {
    color: var(--color-primary);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    margin-bottom: 32px;
    text-transform: uppercase;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) repeat(2, minmax(210px, 1fr));
    gap: 52px;
    align-items: start;
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(18, 45, 99, 0.16);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
}

.footer-logo {
    width: min(260px, 100%);
    height: auto;
    display: block;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--color-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(18, 45, 99, 0.15);
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(242, 106, 33, 0.24);
}

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

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.footer-links h3 {
    color: var(--color-primary);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.footer-links a {
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.35;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--color-accent);
    transform: translateX(3px);
}

.sales-offices {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 72px;
    margin-bottom: 36px;
}

.sales-office h3 {
    color: var(--color-accent);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.office-detail {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    align-items: start;
    margin-bottom: 18px;
}

.office-detail svg {
    width: 19px;
    height: 19px;
    fill: var(--color-primary);
    margin-top: 3px;
}

.office-email-icon {
    color: var(--color-primary);
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    margin-top: 3px;
}

.office-detail h4 {
    color: var(--color-primary-dark);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 2px;
}

.office-detail p,
.office-detail a {
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.55;
    text-decoration: none;
    transition: var(--transition);
}

.office-detail a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(18, 45, 99, 0.16);
    font-size: 13px;
    color: var(--color-muted);
}

@media (max-width: 768px) {
    .footer-title {
        font-size: 24px;
        margin-bottom: 26px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 32px;
        margin-bottom: 32px;
    }

    .footer-brand,
    .footer-links {
        align-items: center;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .sales-offices {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    footer {
        padding-top: 36px;
    }

    .footer-title {
        font-size: 22px;
    }

    .footer-main {
        gap: 24px;
    }

    .footer-logo {
        width: min(220px, 100%);
    }

    .footer-links h3 {
        font-size: 18px;
    }

    .office-detail {
        grid-template-columns: 20px 1fr;
        gap: 10px;
    }

    .office-detail h4 {
        font-size: 15px;
    }

    .office-detail p,
    .office-detail a {
        font-size: 14px;
    }
}

/* ==================== BOTONES FLOTANTES ==================== */
.whatsapp-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 62px;
    height: 62px;
    background: linear-gradient(145deg, #2ce572, #18ba55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(18, 45, 99, 0.24), 0 5px 14px rgba(37, 211, 102, 0.34);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    z-index: 900;
}

.whatsapp-btn::before {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: inherit;
    pointer-events: none;
}

.whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.04);
    filter: saturate(1.08);
    box-shadow: 0 18px 34px rgba(18, 45, 99, 0.28), 0 8px 18px rgba(37, 211, 102, 0.38);
}

.whatsapp-btn:focus-visible,
.scroll-to-top:focus-visible {
    outline: 3px solid rgba(242, 106, 33, 0.38);
    outline-offset: 4px;
}

.scroll-to-top {
    position: fixed;
    bottom: 104px;
    right: 34px;
    width: 54px;
    height: 54px;
    background: linear-gradient(145deg, var(--color-accent), var(--color-accent-dark));
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(18, 45, 99, 0.22), 0 5px 12px rgba(242, 106, 33, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    z-index: 900;
}

.scroll-to-top:hover {
    transform: translateY(-3px) scale(1.04);
    filter: brightness(1.04);
    box-shadow: 0 16px 30px rgba(18, 45, 99, 0.26), 0 7px 16px rgba(242, 106, 33, 0.32);
}

.scroll-to-top.show {
    display: flex;
}

.floating-icon {
    width: 30px;
    height: 30px;
    display: block;
    fill: currentColor;
    position: relative;
    z-index: 1;
}

.scroll-to-top .floating-icon {
    width: 26px;
    height: 26px;
}

@media (max-width: 480px) {
    .whatsapp-btn {
        width: 54px;
        height: 54px;
        bottom: 18px;
        right: 18px;
    }

    .scroll-to-top {
        width: 48px;
        height: 48px;
        bottom: 84px;
        right: 21px;
    }

    .floating-icon {
        width: 27px;
        height: 27px;
    }

    .scroll-to-top .floating-icon {
        width: 23px;
        height: 23px;
    }
}

/* ==================== PLACEHOLDER STYLES ==================== */
.placeholder-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    text-align: center;
}

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

.project-card,
.solution-card {
    animation: slideIn 0.6s ease-out;
}

/* ==================== DROPDOWN MENU ==================== */
.nav-item-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 10px;
    transition: transform 0.3s ease;
}

.nav-item-dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 8px 0;
    border-radius: var(--border-radius);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    color: var(--color-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 16px;
    display: block;
    transition: var(--transition);
}

.dropdown-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 20px;
}

/* ==================== DROPDOWN RESPONSIVE ==================== */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
        background-color: rgba(0, 0, 0, 0.2);
    }

    .nav-item-dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 200px;
    }

    .dropdown-link {
        padding-left: 32px;
    }
}

/* ==================== HEADER DROPDOWN FIX ==================== */
.nav-item-dropdown {
    position: relative;
}

.nav-item-dropdown > .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.nav-item-dropdown > .dropdown-toggle::after {
    content: "";
    position: static;
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    margin: 1px 0 0 2px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    background: transparent;
    transform: rotate(45deg);
    transition: transform 0.2s ease, margin 0.2s ease;
}

.nav-item-dropdown:hover > .dropdown-toggle::after,
.nav-item-dropdown:focus-within > .dropdown-toggle::after,
.nav-item-dropdown.active > .dropdown-toggle::after {
    margin-top: 6px;
    transform: rotate(225deg);
}

.nav-item-dropdown > .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 230px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: rgba(12, 34, 76, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1100;
}

.nav-item-dropdown:hover > .dropdown-menu,
.nav-item-dropdown:focus-within > .dropdown-menu,
.nav-item-dropdown.active > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.nav-item-dropdown > .dropdown-menu .dropdown-link {
    display: block;
    padding: 11px 14px;
    color: var(--color-secondary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-item-dropdown > .dropdown-menu .dropdown-link:hover,
.nav-item-dropdown > .dropdown-menu .dropdown-link:focus {
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-secondary);
    padding-left: 14px;
    outline: none;
}

@media (max-width: 768px) {
    .navbar {
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .nav-list {
        align-items: stretch;
    }

    .nav-item-dropdown {
        width: 100%;
    }

    .nav-item-dropdown > .dropdown-toggle {
        justify-content: space-between;
    }

    .nav-item-dropdown > .dropdown-menu {
        position: static;
        min-width: 0;
        width: 100%;
        max-height: 0;
        padding: 0;
        overflow: hidden;
        background: rgba(0, 0, 0, 0.18);
        border: 0;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.24s ease, padding 0.24s ease;
    }

    .nav-item-dropdown.active > .dropdown-menu {
        max-height: 220px;
        padding: 6px 0 8px;
        transform: none;
    }

    .nav-item-dropdown:hover > .dropdown-menu,
    .nav-item-dropdown:focus-within > .dropdown-menu {
        transform: none;
    }

    .nav-item-dropdown > .dropdown-menu .dropdown-link {
        padding: 12px 24px 12px 42px;
        border-radius: 0;
    }

    .nav-item-dropdown > .dropdown-menu .dropdown-link:hover,
    .nav-item-dropdown > .dropdown-menu .dropdown-link:focus {
        padding-left: 42px;
    }
}
