/* ==================== RESET Y BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a7bb3;
    --secondary-color: #2392d1;
    --tertiary-color: #2ba3e8;
    --text-dark: #333;
    --text-light: #555;
    --background-light: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 5px 20px rgba(35, 146, 209, 0.1);
    --shadow-md: 0 10px 40px rgba(35, 146, 209, 0.15);
    --shadow-lg: 0 15px 60px rgba(35, 146, 209, 0.25);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ==================== NAVEGACIÓN ULTRA MODERNA ==================== */
.navbar {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8f1f7 100%);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(26, 123, 179, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 2px solid rgba(26, 123, 179, 0.1);
}

.navbar.scrolled {
    box-shadow: 0 6px 30px rgba(26, 123, 179, 0.15);
    background: rgba(240, 244, 248, 0.98);
}

/* ==================== BANNER CON TEXTO DESLIZANTE DENTRO DEL NAV ==================== */
.scrolling-banner-inline {
    flex: 1;
    margin: 0 20px;
    height: 50px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.scrolling-text-inline {
    display: flex;
    animation: scroll-inline 15s linear infinite;
    white-space: nowrap;
}

.scrolling-text-inline span {
    color: #1a7bb3;
    font-weight: 700;
    font-size: 1.3rem;
    padding: 0 15px;
    letter-spacing: 1px;
}

@keyframes scroll-inline {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    position: relative;
    z-index: 1;
}

.nav-logo {
    position: relative;
}

.nav-logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    z-index: -1;
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-logo a:hover {
    transform: scale(1.08) translateY(-2px);
}

.nav-logo img,
.nav-logo .logo-img,
.nav-logo img {
    height: 70px !important;
    width: auto !important;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(26, 123, 179, 0.3));
    transition: all 0.3s ease;
    max-height: 90px;
}

.nav-logo a:hover img {
    filter: drop-shadow(0 6px 16px rgba(26, 123, 179, 0.4));
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 48px;
    position: relative;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.05em;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 10px 6px;
    display: inline-block;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--tertiary-color));
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(26, 123, 179, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--tertiary-color));
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(26, 123, 179, 0.4);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::before,
.nav-link.active::before {
    transform: translateX(-50%) scale(1);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) scale(1.2);
        opacity: 0.8;
    }
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    transform: translateY(-3px);
    text-shadow: 0 2px 8px rgba(26, 123, 179, 0.2);
}

nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--tertiary-color));
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::before,
.nav-link.active::before {
    transform: translateX(-50%) scale(1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Dropdown Menu Moderno */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-toggle i {
    font-size: 0.75em;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    backdrop-filter: blur(10px);
    min-width: 280px;
    box-shadow: 0 15px 50px rgba(26, 123, 179, 0.2);
    border-radius: 16px;
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(26, 123, 179, 0.1);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 10px;
    font-weight: 500;
}

/* Login Button Espectacular */
.login-button {
    background: linear-gradient(135deg, #1a7bb3 0%, #2392d1 50%, #2ba3e8 100%) !important;
    color: var(--white) !important;
    padding: 14px 32px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 1.05em !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow:
        0 10px 30px rgba(26, 123, 179, 0.4),
        0 4px 10px rgba(26, 123, 179, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    position: relative !important;
    overflow: hidden !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

.login-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 70%);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.login-button:hover::before {
    left: 100%;
    top: 100%;
}

.login-button::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-button:hover::after {
    opacity: 1;
}

.login-button:hover {
    transform: translateY(-4px) scale(1.08) !important;
    box-shadow:
        0 15px 45px rgba(26, 123, 179, 0.5),
        0 8px 20px rgba(26, 123, 179, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 30px rgba(43, 163, 232, 0.3) !important;
    background: linear-gradient(135deg, #2392d1 0%, #2ba3e8 50%, #3db4f9 100%) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.login-button:active {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow:
        0 8px 25px rgba(26, 123, 179, 0.4),
        0 4px 10px rgba(26, 123, 179, 0.2) !important;
}

.login-button i {
    font-size: 1.1em;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
}

.login-button:hover i {
    transform: rotate(360deg) scale(1.2);
    animation: iconGlow 1.5s ease-in-out infinite;
}

@keyframes iconGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
    }
}

box-shadow: 0 12px 35px rgba(26, 123, 179, 0.5) !important;
background: linear-gradient(135deg, #2392d1 0%, #2ba3e8 50%, #3db4f9 100%) !important;
border-color: rgba(255, 255, 255, 0.3) !important;
}

.login-button:active {
    transform: translateY(-1px) scale(1.02) !important;
}

.login-button i {
    font-size: 1em;
    transition: transform 0.3s ease;
}

.login-button:hover i {
    transform: rotate(360deg);
}

transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 25px;
    color: var(--text-dark);
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--background-light);
    color: var(--primary-color);
    padding-left: 30px;
}

/* Login Button - Versión anterior eliminada */

.dropdown-menu i {
    margin-right: 10px;
    width: 20px;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ==================== HERO SECTION ==================== */
.hero {
    background: linear-gradient(135deg, #1a7bb3 0%, #2392d1 50%, #2ba3e8 100%);
    color: var(--white);
    padding: 180px 20px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 0.95em;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 25px;
    animation: fadeInDown 1s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero p {
    font-size: 1.3em;
    margin-bottom: 35px;
    animation: fadeInUp 1s ease 0.2s both;
    line-height: 1.8;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== BOTONES ==================== */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.05em;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ==================== SECCIONES ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 20px;
}

.section:nth-child(even) {
    background: var(--background-light);
}

.section-title {
    font-size: 2.8em;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.25em;
    color: var(--text-light);
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: center;
    line-height: 1.8;
}

/* ==================== INTRO SECTION ==================== */
.intro-section {
    background: linear-gradient(135deg, rgba(26, 123, 179, 0.05), rgba(35, 146, 209, 0.05));
    padding: 60px 20px;
    text-align: center;
}

.intro-content {
    max-width: 1000px;
    margin: 0 auto;
}

.intro-content p {
    font-size: 1.25em;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 20px;
}

/* ==================== SERVICE CARDS (MINI) ==================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.service-card-mini {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
}

.service-card-mini:hover {
    border-color: var(--secondary-color);
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2em;
    color: var(--white);
    transition: var(--transition);
}

.service-card-mini:hover .service-icon {
    transform: rotateY(360deg);
}

.service-card-mini h3 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 15px;
}

.service-card-mini p {
    color: var(--text-light);
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 25px;
}

.service-link {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.05em;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link:hover {
    color: var(--primary-color);
    gap: 12px;
}

/* ============================================
   SECCIÓN DE SERVICIOS - GRID ANIMADO 2x2
   ============================================ */

.services-section {
    position: relative;
    overflow: hidden;
    padding: 60px 20px;
    background: transparent;
}

.services-grid-animated {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    justify-items: stretch;
    max-width: 840px;
    margin: 40px auto 0;
}

/* Tarjetas animadas */
.service-card-animated {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    padding: 28px;
    color: #000;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, color 0.28s ease;
    border: 4px solid transparent;
    position: relative;
}

.service-card-animated:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
    z-index: 10;
}

/* Bordes redondeados según posición (forma del logo) */
.top-left {
    border-radius: 22px 8px 8px 8px;
}

.top-right {
    border-radius: 8px 22px 8px 8px;
}

.bottom-left {
    border-radius: 8px 8px 22px 8px;
}

.bottom-right {
    border-radius: 8px 8px 8px 22px;
}

/* Colores por servicio */
.energia {
    background: #F4D03F;
}

.seguridad {
    background: #3498DB;
}

.audiovisuales {
    background: #E74C3C;
}

.educacion {
    background: #27AE60;
}

/* Header de la tarjeta */
.service-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.service-icon-animated {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.service-icon-animated i {
    font-size: 22px;
    color: #fff;
}

/* Tipografía de las tarjetas */
.service-card-animated h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.service-card-animated p {
    margin: 8px 0 14px;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 400;
}

/* Contenedor de acciones */
.service-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
}

/* Botones */
.service-button {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    color: inherit;
    text-decoration: none;
    padding: 0.85rem 1.15rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    transition: back ground 0.25s ease, transform 0.25s ease;
}

.service-button:hover {
    background: rgba(255, 255, 255, 0.26);
    transform: translateY(-1px);
}

.service-button svg {
    width: 17px;
    height: 17px;
}

/* Animación de unión/separación (efecto del logo) */
@keyframes joinSplit {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(var(--dx), var(--dy));
    }
}

.top-left {
    --dx: -24px;
    --dy: -24px;
    animation: joinSplit 4.5s ease-in-out infinite;
}

.top-right {
    --dx: 24px;
    --dy: -24px;
    animation: joinSplit 4.5s ease-in-out infinite;
}

.bottom-left {
    --dx: -24px;
    --dy: 24px;
    animation: joinSplit 4.5s ease-in-out infinite;
}

.bottom-right {
    --dx: 24px;
    --dy: 24px;
    animation: joinSplit 4.5s ease-in-out infinite;
}

/* Tarjeta activa (resaltado rotativo) */
.service-card-animated.active {
    border-color: white;
    color: #fff;
}

.service-card-animated.active h3 {
    color: #fff;
}

/* Responsive */
@media (max-width: 720px) {
    .services-grid-animated {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 16px;
    }

    .top-left,
    .top-right,
    .bottom-left,
    .bottom-right {
        border-radius: 16px;
        transform: none !important;
        animation: none;
    }

    .service-card-animated {
        min-height: auto;
    }

    .service-card-animated:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 480px) {
    .service-card-animated {
        font-size: 1.1em;
        min-height: auto;
    }

    .service-card-header {
        gap: 10px;
    }

    .service-icon-animated {
        width: 42px;
        height: 42px;
    }

    .service-icon-animated i {
        font-size: 20px;
    }

    .service-card-animated h3 {
        font-size: 18px;
    }

    .service-card-animated p {
        font-size: 14px;
    }
}

/* ==================== SERVICE CARDS (FULL) ==================== */
.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 50px;
    margin-bottom: 60px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.service-card:nth-child(even) {
    grid-template-columns: 1fr 1fr;
}

.service-card:nth-child(even) .service-content {
    order: 2;
}

.service-card:nth-child(even) .service-image {
    order: 1;
}

.service-image {
    border-radius: 15px;
    overflow: hidden;
    height: 400px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}


.service-card:hover .service-image img {
    transform: scale(1.1);
}


.icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--white);
}

.service-content h2 {
    color: var(--primary-color);
    font-size: 2.2em;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.service-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.service-content p {
    color: var(--text-light);
    font-size: 1.1em;
    line-height: 1.8;
    margin-top: 30px;
    margin-bottom: 15px;
}

.service-content ul {
    list-style: none;
    margin-top: 25px;
    padding: 0;
}

.service-content li {
    padding: 12px 0 12px 35px;
    position: relative;
    color: var(--text-light);
    font-size: 1.05em;
    line-height: 1.7;
}

.service-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.3em;
    width: 25px;
    height: 25px;
    background: rgba(35, 146, 209, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
}

/* ==================== FEATURES GRID ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 50px;
}

.feature-item {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
}

.feature-item:hover {
    border-color: var(--secondary-color);
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.feature-item .icon {
    font-size: 3.5em;
    margin-bottom: 20px;
    display: block;
}

.feature-item h3 {
    color: var(--primary-color);
    margin: 20px 0 15px;
    font-size: 1.4em;
}

.feature-item p {
    color: var(--text-light);
    font-size: 1.05em;
    line-height: 1.7;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 2.8em;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.3em;
    margin-bottom: 35px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== FOOTER ==================== */
.footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 60px 20px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.3em;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
}

.footer-col p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #ccc;
    transition: var(--transition);
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--secondary-color);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==================== BOTÓN FLOTANTE LOGIN ==================== */
.floating-login-btn {
    position: fixed;
    bottom: 160px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a7bb3 0%, #0d4d73 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(26, 123, 179, 0.4);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: 3px solid rgba(255, 255, 255, 0.2);
    overflow: visible;
}

.floating-login-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 30px rgba(26, 123, 179, 0.6);
    background: linear-gradient(135deg, #0d4d73 0%, #1a7bb3 100%);
    width: auto;
    padding: 0 25px;
    border-radius: 30px;
}

.floating-login-btn i {
    color: white;
    font-size: 24px;
    transition: margin 0.3s ease;
}

.floating-login-btn:hover i {
    margin-right: 10px;
}

.floating-login-btn span {
    display: none;
    color: white;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease 0.1s;
}

.floating-login-btn:hover span {
    display: inline-block;
    opacity: 1;
}

.floating-login-btn::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a7bb3 0%, #0d4d73 100%);
    opacity: 0;
    animation: pulse-login 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse-login {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Pantallas extra grandes (1920px+) */
@media (min-width: 1920px) {
    .container {
        max-width: 1800px;
    }

    .nav-container {
        max-width: 1800px;
    }

    .hero h1 {
        font-size: 4.5em;
    }

    .section-title {
        font-size: 3.5em;
    }
}

/* Laptops grandes (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
    .container {
        max-width: 1400px;
    }

    .hero h1 {
        font-size: 4em;
    }
}

/* Laptops estándar (1200px - 1439px) */
@media (min-width: 1200px) and (max-width: 1439px) {
    .container {
        max-width: 1140px;
    }

    .nav-container {
        padding: 0 40px;
    }
}

/* Tablets horizontales y laptops pequeños (1024px - 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }

    .nav-container {
        padding: 0 30px;
        height: 90px;
    }

    .hero h1 {
        font-size: 3em;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Tablets y pantallas medianas (768px - 1023px) */
@media (max-width: 1023px) {
    .nav-menu {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 40px 20px;
        gap: 0;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
        text-align: center;
        padding: 20px 0;
        border-bottom: 1px solid rgba(26, 123, 179, 0.1);
        animation: slideInLeft 0.3s ease forwards;
        opacity: 0;
    }

    .nav-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-item:nth-child(2) {
        animation-delay: 0.15s;
    }

    .nav-item:nth-child(3) {
        animation-delay: 0.2s;
    }

    .nav-item:nth-child(4) {
        animation-delay: 0.25s;
    }

    .nav-item:nth-child(5) {
        animation-delay: 0.3s;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-link {
        justify-content: center;
        text-align: center;
    }

    .dropdown {
        width: 100%;
        position: relative;
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: center;
        text-align: center;
        display: flex;
        align-items: center;
    }

    .dropdown-menu {
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        margin: 10px auto 0 auto !important;
        display: none;
        background: var(--background-light);
        border-radius: 12px;
        padding: 10px 0;
        width: 90%;
        max-width: 300px;
        box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        padding: 15px 20px;
        font-size: 0.95em;
        text-align: center;
        justify-content: center;
        display: block;
        width: 100%;
    }

    .dropdown-menu a {
        justify-content: center;
    }

    .hero {
        padding: 160px 30px 100px;
    }

    .hero h1 {
        font-size: 2.8em;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1.2em;
    }

    .nav-logo img {
        height: 40px;
        width: auto;
    }

    .section-title {
        font-size: 2.5em;
    }

    .section-subtitle {
        font-size: 1.2em;
    }

    .service-card {
        grid-template-columns: 1fr;
        padding: 40px 30px;
        gap: 30px;
    }

    .service-card:nth-child(even) .service-content {
        order: 1;
    }

    .service-card:nth-child(even) .service-image {
        order: 2;
    }

    .service-image {
        height: 350px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}


/* Tablets verticales (600px - 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 20px;
    }

    .nav-container {
        padding: 0 20px;
        height: 80px;
    }

    .nav-menu {
        top: 80px;
        height: calc(100vh - 80px);
    }

    .hero {
        padding: 140px 20px 80px;
        margin-top: 80px;
    }

    .hero h1 {
        font-size: 2.2em;
        line-height: 1.3;
        margin-bottom: 20px;
    }

    .hero p {
        font-size: 1.1em;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .btn {
        width: 100%;
        padding: 15px 30px;
        font-size: 1em;
    }

    .section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .section-subtitle {
        font-size: 1.1em;
        margin-bottom: 40px;
    }

    .service-card {
        padding: 30px 25px;
        gap: 25px;
        display: flex !important;
        flex-direction: column-reverse !important;
    }

    .service-content h2 {
        font-size: 1.9em;
        margin-bottom: 15px;
    }

    .service-content p {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .service-image {
        height: 280px;
        border-radius: 15px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-item {
        padding: 30px 25px;
    }

    .feature-item .icon {
        font-size: 2.5em;
        margin-bottom: 15px;
    }

    .feature-item h3 {
        font-size: 1.3em;
        margin-bottom: 12px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .service-box {
        padding: 35px 25px;
    }

    .service-box .service-icon {
        font-size: 2.5em;
        margin-bottom: 20px;
    }

    .service-box h3 {
        font-size: 1.4em;
    }

    .cta-section {
        padding: 60px 20px;
    }

    .cta-section h2 {
        font-size: 2em;
        margin-bottom: 20px;
    }

    .cta-section p {
        font-size: 1.1em;
        margin-bottom: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-col h4 {
        font-size: 1.3em;
        margin-bottom: 20px;
    }

    .login-button {
        padding: 10px 20px !important;
        font-size: 0.9em;
    }

    .faq-item {
        padding: 20px;
    }

    .faq-question {
        font-size: 1.1em;
        padding-right: 40px;
    }
}


/* Móviles grandes (480px - 599px) */
@media (max-width: 599px) {
    .nav-container {
        height: 75px;
        padding: 0 15px;
    }

    .nav-menu {
        top: 75px;
        height: calc(100vh - 75px);
        padding: 30px 15px;
    }

    .nav-logo img {
        height: 38px;
    }

    .hero {
        margin-top: 75px;
        padding: 120px 15px 70px;
    }

    .hero h1 {
        font-size: 1.9em;
        line-height: 1.3;
    }

    .hero p {
        font-size: 1em;
        line-height: 1.6;
    }

    .section {
        padding: 50px 15px;
    }

    .section-title {
        font-size: 1.8em;
    }

    .section-subtitle {
        font-size: 1em;
    }

    .service-card {
        padding: 25px 20px;
    }

    .service-image {
        height: 240px;
        border-radius: 12px;
    }

    .service-content h2 {
        font-size: 1.6em;
    }

    .btn {
        padding: 13px 25px;
        font-size: 0.95em;
    }

    .cta-section h2 {
        font-size: 1.8em;
    }

    .cta-section p {
        font-size: 1em;
    }
}

/* Móviles estándar (375px - 479px) */
@media (max-width: 479px) {
    .nav-container {
        height: 70px;
    }

    .nav-menu {
        top: 70px;
        height: calc(100vh - 70px);
    }

    .logo-text {
        font-size: 1.5em;
    }

    .nav-logo img {
        height: 35px;
    }

    .hero {
        margin-top: 70px;
        padding: 100px 15px 60px;
    }

    .hero h1 {
        font-size: 1.7em;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 0.95em;
        line-height: 1.6;
        margin-bottom: 25px;
    }

    .hero-buttons {
        gap: 12px;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        padding: 12px 20px;
        font-size: 0.9em;
    }

    .section {
        padding: 45px 15px;
    }

    .section-title {
        font-size: 2em;
        margin-bottom: 12px;
    }

    .section-subtitle {
        font-size: 1.1em;
        margin-bottom: 30px;
    }

    .service-card {
        padding: 20px 15px;
        gap: 20px;
    }

    .service-content h2 {
        font-size: 1.5em;
        margin-bottom: 12px;
    }

    .service-content p {
        font-size: 0.95em;
        line-height: 1.6;
    }

    .service-image {
        height: 220px;
    }

    .feature-item {
        padding: 25px 20px;
    }

    .feature-item .icon {
        font-size: 2.2em;
    }

    .feature-item h3 {
        font-size: 1.2em;
    }

    .feature-item p {
        font-size: 0.95em;
    }

    .service-box {
        padding: 30px 20px;
    }

    .service-box h3 {
        font-size: 1.3em;
    }

    .service-box p {
        font-size: 0.95em;
    }

    .cta-section h2 {
        font-size: 1.6em;
    }

    .cta-section p {
        font-size: 0.95em;
    }

    .footer-col h4 {
        font-size: 1.2em;
    }

    .footer-col p,
    .footer-col li {
        font-size: 0.95em;
    }

    .login-button {
        padding: 8px 16px !important;
        font-size: 0.85em;
    }
}

/* Móviles pequeños (320px - 374px) */
@media (max-width: 374px) {
    .nav-container {
        height: 65px;
        padding: 0 12px;
    }

    .nav-menu {
        top: 65px;
        height: calc(100vh - 65px);
    }

    .nav-logo img {
        height: 32px;
    }

    .hero {
        margin-top: 65px;
        padding: 90px 12px 50px;
    }

    .hero h1 {
        font-size: 1.5em;
    }

    .hero p {
        font-size: 0.9em;
    }

    .section {
        padding: 40px 12px;
    }

    .section-title {
        font-size: 1.4em;
    }

    .section-subtitle {
        font-size: 0.9em;
    }

    .btn {
        padding: 11px 18px;
        font-size: 0.85em;
    }

    .service-card {
        padding: 18px 12px;
    }

    .service-content h2 {
        font-size: 1.3em;
    }

    .service-content p {
        font-size: 0.9em;
    }

    .service-image {
        height: 200px;
    }

    .feature-item {
        padding: 20px 15px;
    }

    .feature-item .icon {
        font-size: 2em;
    }

    .feature-item h3 {
        font-size: 1.1em;
    }

    .feature-item p {
        font-size: 0.9em;
    }

    .cta-section h2 {
        font-size: 1.4em;
    }

    .cta-section p {
        font-size: 0.9em;
    }
}

/* ==================== ANIMACIONES ADICIONALES ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== FAQ ==================== */
.faq-section {
    padding: 60px 20px;
}

.faq-list {
    max-width: 900px;
    margin: 20px auto 0;
    display: grid;
    gap: 12px;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 18px 20px;
    font-size: 1.05rem;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.faq-question:focus {
    outline: 2px solid rgba(35, 146, 209, 0.25);
}

.faq-answer {
    padding: 0 20px 18px 20px;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
}

.faq-question::after {
    content: '\f107';
    /* FontAwesome chevron-down */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    transform: rotate(0deg);
    transition: transform 0.25s ease;
}

.faq-question[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* ==================== CLIENTS / TRUSTED BY ==================== */
.clients-section {
    padding: 60px 20px;
    background: linear-gradient(180deg, rgba(250, 250, 250, 0.6), rgba(250, 250, 250, 0.95));
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    align-items: center;
    justify-items: center;
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px;
}

.client-item {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.client-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.client-item:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.client-item:hover::before {
    left: 100%;
}

.client-item img {
    max-width: 85%;
    max-height: 110px;
    height: auto;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease;
    display: block;
    position: relative;
    z-index: 1;
    filter: brightness(0.95);
    margin: 0 auto;
}

.client-item img:hover {
    opacity: 1;
    transform: scale(1.1);
    filter: brightness(1);
}

.client-item img:hover {
    opacity: 1;
    transform: scale(1.1);
    filter: brightness(1);
}

.client-name {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.clients-note {
    text-align: center;
    margin-top: 18px;
    color: var(--text-light);
}