/* =========================================
   IMPREXIT33 - ESTILOS PRINCIPALES
   ========================================= */

/* --- VARIABLES --- */
:root {
    /* Paleta de la Marca (del PDF) */
    --color-blue-light: #0d5c9f;
    --color-blue-dark: #133969;
    --color-gold: #e7aa51;
    --color-red: #d4242c;

    /* Neutros y Fondos */
    --color-bg-light: #f8faff;
    --color-bg-dark: #0f172a;
    --color-text-main: #1e293b;
    --color-text-muted: #64748b;
    --color-white: #ffffff;

    /* Gradientes */
    --grad-primary: linear-gradient(135deg, var(--color-blue-dark), var(--color-blue-light));
    --grad-gold: linear-gradient(135deg, #fcd34d, var(--color-gold));
    
    /* Tipografía */
    --font-main: 'Montserrat', sans-serif;
    
    /* Sombras y Efectos */
    --shadow-soft: 0 10px 30px -10px rgba(13, 92, 159, 0.15);
    --shadow-hover: 0 20px 40px -10px rgba(13, 92, 159, 0.25);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    
    /* Transiciones */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- RESET & GLOBALS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    color: var(--color-blue-dark);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--grad-gold);
    border-radius: 2px;
}

.section-title.text-left {
    text-align: left;
}

.section-title.text-left::after {
    left: 0;
    transform: none;
}

/* --- BOTONES --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--grad-primary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(13, 92, 159, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--color-blue-dark);
    z-index: -1;
    transition: var(--transition);
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 92, 159, 0.4);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-blue-dark);
    border: 2px solid var(--color-white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: transparent;
    color: var(--color-white);
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* --- HEADER & NAVEGACIÓN --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 180px;
    transition: var(--transition);
    /* Transform scale can also help if it has internal padding */
    transform-origin: left center;
}

.author-name {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    font-size: 1.1rem;
    font-style: italic;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: var(--transition);
}

.header.scrolled .author-name {
    color: rgba(19, 57, 105, 0.7); /* var(--color-blue-dark) with opacity */
}

.header.scrolled .logo img {
    height: 110px;
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    color: var(--color-white);
    position: relative;
}

.header.scrolled .nav-link {
    color: var(--color-blue-dark);
}

.nav-link:not(.btn-contact)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: var(--transition);
}

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

.nav-link.btn-contact {
    background: var(--color-gold);
    color: var(--color-white);
    padding: 8px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(231, 170, 81, 0.3);
}

.nav-link.btn-contact:hover {
    background: #d89b43;
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-white);
    cursor: pointer;
}

.header.scrolled .nav-toggle {
    color: var(--color-blue-dark);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--color-blue-dark);
    /* Imagen de fondo sutil o textura si se desea */
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--color-blue-light) 0%, transparent 70%);
    opacity: 0.3;
    border-radius: 50%;
    filter: blur(40px);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%; left: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--color-red) 0%, transparent 70%);
    opacity: 0.15;
    border-radius: 50%;
    filter: blur(40px);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(19, 57, 105, 0.9) 40%, rgba(13, 92, 159, 0.8) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    text-align: left;
    color: var(--color-white);
    padding-top: 180px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 40px;
    max-width: 700px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

.hero-image img {
    max-width: 100%;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.3));
}

.floating-img {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* --- SERVICIOS --- */
.services {
    background-color: var(--color-bg-light);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(13, 92, 159, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.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);
}

.service-content {
    padding: 30px;
    position: relative;
}

.service-icon {
    position: absolute;
    top: -25px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--grad-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(13, 92, 159, 0.3);
}

.service-content h3 {
    color: var(--color-blue-dark);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-content p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* --- NOSOTROS --- */
.about {
    background-color: var(--color-white);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--color-text-muted);
}

.about-list {
    margin-top: 30px;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--color-blue-dark);
}

.about-list li i {
    color: var(--color-gold);
    font-size: 1.2rem;
}

.about-visual {
    position: relative;
}

.brand-element {
    background: var(--color-bg-light);
    border-radius: 30px;
    padding: 40px;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.brand-element::before {
    content: '';
    position: absolute;
    top: -20px; left: -20px;
    width: 100px; height: 100px;
    border-top: 5px solid var(--color-red);
    border-left: 5px solid var(--color-red);
    border-radius: 10px 0 0 0;
}

.brand-element::after {
    content: '';
    position: absolute;
    bottom: -20px; right: -20px;
    width: 100px; height: 100px;
    border-bottom: 5px solid var(--color-gold);
    border-right: 5px solid var(--color-gold);
    border-radius: 0 0 10px 0;
}

/* --- CTA SECTION --- */
.cta {
    background: var(--grad-primary);
    color: var(--color-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.2)"/></svg>') repeat;
    opacity: 0.5;
}

.cta-container {
    position: relative;
    z-index: 2;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

.cta .btn-primary:hover {
    background: var(--color-gold);
    color: var(--color-white);
}

/* --- FOOTER --- */
.footer {
    background-color: var(--color-blue-dark);
    color: var(--color-white);
    padding-top: 80px;
}

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

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px; left: 0;
    width: 30px; height: 3px;
    background: var(--color-gold);
    border-radius: 2px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-info i {
    color: var(--color-gold);
    margin-top: 4px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-white);
}

.social-links a:hover {
    background: var(--color-gold);
    transform: translateY(-3px);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        position: relative;
        justify-content: center;
    }

    .nav-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-white);
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        transition: var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
    }

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

    .nav-list {
        flex-direction: column;
        gap: 30px;
    }

    .nav-link {
        color: var(--color-blue-dark);
        font-size: 1.2rem;
    }

    .header .nav-link {
        color: var(--color-blue-dark);
    }
    
    .logo {
        gap: 0;
        justify-content: center;
    }

    .logo img {
        height: 160px;
    }
    
    .header.scrolled .logo img {
        height: 100px;
    }

    .author-name {
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.85rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 150px;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        justify-content: center;
        padding: 0 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}
