/* 
===============================================
   EDIVKA - LIGHT MODE STYLES & PARTICLES
===============================================
*/

:root {
    /* Color Palette - LIGHT MODE */
    --color-bg: #F4F7FA;          /* Light grayish blue background */
    --color-bg-darker: #E5EBF2;   /* Slightly darker for alternating sections */
    
    /* Elegant Glassmorphism */
    --color-surface: rgba(255, 255, 255, 0.75); 
    --color-surface-hover: rgba(255, 255, 255, 0.95);
    
    /* Logos Colors */
    --color-primary: #045084;      /* Navy Blue */
    --color-primary-light: #0672C0;
    --color-accent: #0097FF; /*#00D142;*/ /*#19B064;*/       /* Vibrant Green / Emerald */
    --color-accent-glow: rgba(24, 89, 181, 0.3);
    
    /* Typography */
    --color-text: #334155;         /* Dark Slate Gray for text */
    --color-text-muted: #64748B;
    --color-heading: #0F172A;      /* Almost dark for headings */
    --color-white: #FFFFFF;        /* Keep true white for buttons mostly */
    
    /* Borders & Shadows */
    --border-glass: 1px solid rgba(255, 255, 255, 0.8);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.05); /* Very soft shadow */
    --shadow-glow: 0 4px 20px rgba(24, 89, 181, 0.25);
    
    /* Variables */
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* ================= Particles Container ================= */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1; /* Goes behind everything */
    background-color: var(--color-bg);
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 1200; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; font-weight: 600; }

p { margin-bottom: 1rem; color: var(--color-text-muted); }

a { text-decoration: none; color: var(--color-primary); transition: var(--transition); }
a:hover { color: var(--color-accent); }

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.w-100 { width: 100%; }

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 6rem 0;
}

.bg-darker {
    background-color: var(--color-bg-darker);
}

/* Glassmorphism */
.glass {
    background: var(--color-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--border-glass);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-glass);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-main);
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: var(--color-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: var(--color-white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

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

.shadow-glow { box-shadow: var(--shadow-glow); }

/* ================= Navbar ================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-heading);
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    color: var(--color-text);
    font-weight: 500;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover {
    color: var(--color-primary);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--color-heading);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ================= Hero Section ================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
    justify-content: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-text {
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(4, 80, 132, 0.1);
    border: 1px solid rgba(4, 80, 132, 0.2);
    color: var(--color-primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
    color: var(--color-text);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ================= Services Section ================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    padding: 2rem;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(4, 80, 132, 0.08); /* slight border */
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(25, 176, 100, 0.3);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.service-img {
    position: relative;
    height: 180px;
    border-radius: calc(var(--border-radius) - 8px);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.icon-wrapper {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--color-white);
    border: 4px solid #FFFFFF;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.feature-list {
    list-style: none;
    margin-top: 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--color-text);
}

.feature-list i {
    color: var(--color-accent);
    font-size: 0.85rem;
}

/* ================= Brands Carousel ================= */
.brands-carousel {
    overflow: hidden;
    margin-top: 3rem;
    padding: 1.5rem 0;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.brands-track {
    display: flex;
    gap: 2rem;
    animation: scroll-brands 45s linear infinite;
    width: max-content;
}

.brands-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-brands {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.brand-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.5rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(4, 80, 132, 0.1);
    border-radius: 12px;
    min-width: 170px;
    height: 80px; /* Altura fija para que todos los contenedores de logos se alineen perfectamente */
    transition: var(--transition);
    cursor: default;
}

.brand-item:hover {
    border-color: var(--color-accent);
    box-shadow: 0 8px 25px rgba(25, 176, 100, 0.12);
    transform: translateY(-3px);
}

.brand-item img {
    max-height: 45px;
    max-width: 130px;
    object-fit: contain;
    filter: grayscale(100%) opacity(70%);
    transition: var(--transition);
}

.brand-item:hover img {
    filter: grayscale(0%) opacity(100%);
}

/* ================= Pólizas Section ================= */
.polizas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
}

.poliza-card {
    background: #FFFFFF;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.poliza-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.poliza-card.featured {
    border-color: var(--color-accent);
    box-shadow: 0 8px 35px rgba(25, 176, 100, 0.15);
    transform: scale(1.03);
}

.poliza-card.featured:hover {
    transform: scale(1.03) translateY(-8px);
}

.poliza-header {
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.poliza-header.basica {
    background: linear-gradient(135deg, rgba(4, 80, 132, 0.05), rgba(4, 80, 132, 0.02));
    border-top: 4px solid var(--color-primary);
}

.poliza-header.pyme {
    background: linear-gradient(135deg, rgba(25, 176, 100, 0.08), rgba(4, 80, 132, 0.04));
    border-top: 4px solid var(--color-accent);
}

.poliza-header.empresarial {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.06), rgba(4, 80, 132, 0.04));
    border-top: 4px solid #DC2626;
}

.poliza-badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: var(--color-white);
}

.poliza-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--color-heading);
    margin-bottom: 0.5rem;
}

.poliza-tagline {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0;
}

.poliza-body {
    padding: 1.5rem 2rem;
    flex: 1;
}

.poliza-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.poliza-body h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 0.75rem;
}

.poliza-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.poliza-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    color: var(--color-text);
    line-height: 1.4;
}

.poliza-features i {
    color: var(--color-accent);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.poliza-footer {
    padding: 1.25rem 2rem;
    background: rgba(4, 80, 132, 0.03);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.poliza-footer p {
    font-size: 0.85rem;
    color: var(--color-primary);
    margin-bottom: 0;
    line-height: 1.5;
}

/* ================= WhatsApp Floating Button ================= */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #20ba5a;
    color: #FFFFFF;
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1); }
    100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
}

/* ================= Why Us Section ================= */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item i {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.stat-item h4 {
    margin-bottom: 0.2rem;
    color: var(--color-heading);
}

.stats-card {
    padding: 3rem;
    text-align: center;
    border-top: 4px solid var(--color-accent);
    background: #FFFFFF;
}

.icon-xl {
    font-size: 4rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

/* ================= Contact Section ================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    overflow: hidden;
    background: #FFFFFF;
}

.contact-info {
    padding: 3rem;
    background: rgba(4, 80, 132, 0.03); /* Subtle primary tint */
    border-right: 1px solid rgba(0,0,0,0.05);
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.icon-box {
    width: 45px;
    height: 45px;
    background: rgba(182, 182, 182, 0.2);
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.contact-item h5 {
    margin-bottom: 0.1rem;
}

.contact-form-wrapper {
    padding: 3rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}
.form-row .form-group { flex: 1; }

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-heading);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: var(--color-text);
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(4, 80, 132, 0.1);
    background: #FFFFFF;
}

.form-status { font-weight: 500; font-size: 0.95rem; }
.status-success { color: var(--color-accent); }
.status-error { color: #DC2626; }

/* ================= Footer ================= */
.footer {
    background: var(--color-bg-darker);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo { margin-bottom: 1rem; }

.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--color-primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.social-icons a:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* ================= Animations ================= */
[data-aos] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos="fade-up"] { transform: translateY(30px); }
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="fade-left"] { transform: translateX(30px); }

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0);
}

/* ================= Responsive ================= */
@media (max-width: 992px) {
    .intro-grid { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-info { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.05); }
    h1 { font-size: 2.8rem; }
    .polizas-grid { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
    .poliza-card.featured { transform: none; }
    .poliza-card.featured:hover { transform: translateY(-8px); }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        backdrop-filter: blur(15px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .nav-links.active { left: 0; }
    .mobile-menu-btn { display: block; }
    .form-row { flex-direction: column; gap: 0; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
    .hero-buttons { flex-direction: column; }

    .whatsapp-float {
        bottom: 1.2rem;
        right: 1.2rem;
        width: 52px;
        height: 52px;
        font-size: 1.7rem;
    }

    .brand-item {
        padding: 1rem 1.8rem;
        min-width: 140px;
    }

    .brand-item span {
        font-size: 1rem;
    }

    .logo img {
        height: 40px;
    }
}
