@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary-red: #DA291C;
    --primary-blue: #0046BE;
    --hover-blue: #00369c;
    --text-dark: #1A1A1A;
    --text-gray: #6B6B6B;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --surface: #FFFFFF;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.08);
    
    --header-main-h: 80px;
    --header-sub-h: 44px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 12px rgba(0,0,0,0.06);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-main-h) + var(--header-sub-h));
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Common Layout */
.section {
    padding: 120px 20px;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.section:nth-child(even) {
    background-color: var(--bg-light);
}

.btn-pill {
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    display: inline-block;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-red {
    background-color: var(--primary-red);
    color: var(--white);
}

.btn-red:hover {
    background-color: var(--white);
    color: var(--primary-red);
    border-color: var(--primary-red);
}

.btn-blue {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-blue:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* Footer Styles - REFINED */
.footer-main {
    background: #03045E;
    padding: 30px 0 20px;
    color: #fff;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.footer-logo {
    width: 120px;
    filter: brightness(0) invert(1);
    display: block;
}
.footer-slogan p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin: 0;
    font-weight: 500;
}
.footer-social-mini {
    display: flex;
    gap: 15px;
}
.footer-social-mini a {
    color: #fff;
    opacity: 0.7;
    transition: 0.3s;
}
.footer-social-mini a:hover {
    opacity: 1;
    transform: translateY(-2px);
}
.footer-social-mini svg {
    width: 16px !important; /* Reducido al mínimo */
    height: 16px !important;
}
.footer-bottom-row {
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.6;
}
.footer-legal a {
    color: inherit;
    text-decoration: none;
}
.footer-legal a:hover { text-decoration: underline; }
.footer-legal .sep { margin: 0 8px; }

@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
/* Global Utilities - FORCED BACKGROUNDS */
.bg-navy-full {
    background-color: #03045E !important; /* Azul marino original solicitado */
    background-image: none !important;
    color: white !important;
}

.bg-navy-full .container {
    color: white;
}

.bg-navy-full h1, 
.bg-navy-full h2, 
.bg-navy-full h3, 
.bg-navy-full p, 
.bg-navy-full li,
.bg-navy-full span,
.bg-navy-full div {
    color: white !important;
}

.bg-navy-full .badge {
    background: rgba(255,255,255,0.1);
    color: white !important;
}

.bg-navy-full a.btn-primary {
    background: var(--primary-red) !important;
    color: white !important;
    border-color: var(--primary-red) !important;
}
/* Animation Utilities - REVEAL SYSTEM */
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition-delay: 0.1s;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(-30px);
}

.reveal-right {
    transform: translateX(30px);
}

.reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Float & Pulse Micro-animations */
@keyframes softPulse {
    0% { transform: scale(1); box-shadow: 0 10px 25px rgba(220,38,38,0.4); }
    50% { transform: scale(1.05); box-shadow: 0 15px 35px rgba(220,38,38,0.6); }
    100% { transform: scale(1); box-shadow: 0 10px 25px rgba(220,38,38,0.4); }
}

.chatbot-launcher {
    animation: softPulse 3s infinite ease-in-out;
}

/* Stagger Helpers (Cascada) */
.reveal-delay-1 { transition-delay: 0.2s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.4s; }
.reveal-delay-4 { transition-delay: 0.5s; }
/* Global Modal System */
.modal-solucion {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 4, 94, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
    padding: 20px;
}

.modal-solucion.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #fff;
    width: 100%;
    max-width: 650px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    transform: translateY(50px);
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-dark);
}

.modal-solucion.active .modal-container {
    transform: translateY(0);
}

.modal-header-img {
    width: 100%;
    height: 250px;
    background: #001233;
}

.modal-header-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 40px;
    text-align: left;
}

.modal-body h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 15px;
}

.modal-body p {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.btn-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: 0.3s;
}

.btn-modal-close:hover {
    background: var(--primary-red);
    color: #fff;
}

.btn-modal-mail {
    background: var(--primary-blue);
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-modal-mail:hover {
    background: var(--hover-blue);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .modal-body { padding: 30px; }
    .modal-body h2 { font-size: 1.5rem; }
}
