:root {
    --primary-blue: #036ba3;
    --primary-orange: #f28c19;
    --text-color: #2c4d58;
    --white: #ffffff;
    --light-gray: #f5f7f9;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

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

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 60px; 
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-orange);
}

.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    margin: 2px 0;
    transition: all 0.3s;
}

/* Hero Section with Ken Burns Effect */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.hero-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    animation: kenburns 20s infinite;
}

.hero-slide.active {
    opacity: 1;
}

.slide-1 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://cobrosseguros.com/mockup/images/generada001_extended.jpg?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
}

.slide-2 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    animation-delay: 4s;
}

.slide-3 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    animation-delay: 8s;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    width: 80%;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 2.3rem;
    margin-bottom: 20px;
    color: var(--white);
    text-transform: uppercase;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Shared Button Styles */
.btn-primary {
    background-color: var(--primary-orange);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #e07d0f;
    transform: translateY(-2px);
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

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

.service-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

/* About Section */
.about {
    padding-top: 80px;
    padding-bottom: 80px;
    display: flex;
    position: relative;
    overflow: hidden;
}

.about-container {
    z-index: 1;
}

.about-content {
    flex-grow: 1;
    min-width: 300px;
    padding-right: 50px;
}

.about-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 50vw;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
    background-size: cover;
    background-position: center;
}

.about-text p {
    margin-bottom: 30px;
}

/* Achievements Section */
.achievements {
    padding: 80px 0;
    background-color: var(--primary-blue);
    color: var(--white);
    position: relative;
    overflow: hidden;
    background-image: url('images/fondo-azul.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Overlay para mejorar la legibilidad */
.achievements::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.achievements h2 {
    color: var(--white);
    text-align: center;
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.stat-number i {
    margin-right: 10px;
    color: var(--primary-orange);
}

.testimonial {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 600;
}

/* Final CTA and Work With Us Container */
.cta-container {
    display: flex;
    min-height: 400px;
}

/* Final CTA Section */
.final-cta {
    flex: 1;
    padding: 80px 40px;
    text-align: center;
    background-color: var(--light-gray);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.final-cta h2 {
    margin-bottom: 20px;
}

.final-cta p {
    margin-bottom: 30px;
    max-width: 500px;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Work With Us Section */
.work-with-us {
    flex: 1;
    padding: 80px 40px;
    text-align: center;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.work-with-us h2 {
    margin-bottom: 20px;
}

.work-with-us p {
    margin-bottom: 30px;
    max-width: 500px;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Footer */
footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 60px;
    width: auto;
}

.footer-info h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-info p {
    margin-bottom: 15px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.footer-info a {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, text-decoration 0.3s;
}

.footer-info a:hover {
    color: #e07d0f;
    text-decoration: underline;
}

.footer-cta {
    text-align: center;
    margin: 30px 0;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    background-color: #25D366;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.whatsapp-button i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.whatsapp-button:hover {
    background-color: #128C7E;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom a {
    color: #ccc;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Ken Burns Animation */
@keyframes kenburns {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .about-image {
        position: static;
        width: 100%;
        height: 300px;
        margin-top: 40px;
    }

    .achievements {
        background-attachment: scroll;
    }
    
    .cta-container {
        flex-direction: column;
    }
    
    .final-cta,
    .work-with-us {
        padding: 60px 20px;
    }
}

@media (min-width: 769px) {
    .about-content {
        max-width: 50%;
        padding-right: 50px;
    }
}