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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #182739;
    color: #f8f9fa;
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

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

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

.nav-list li {
    position: relative;
    margin-left: 25px;
}

.nav-list a {
    color: #f8f9fa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.nav-list a:hover {
    color: #bc9f5f;
}

.has-submenu .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #182739;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    list-style: none;
    border-top: 2px solid #bc9f5f;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.submenu a {
    padding: 12px 20px;
    display: block;
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #f8f9fa;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 70px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(24, 39, 57, 0.9), rgba(24, 39, 57, 0.7));
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #f8f9fa;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #e9ecef;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-cta-whatsapp {
    background-color: #bc9f5f;
    color: #fff;
}

.btn-cta-whatsapp:hover {
    background-color: #182739;
    border-color: #bc9f5f;
    color: #bc9f5f;
}

.btn-secondary {
    background-color: transparent;
    color: #f8f9fa;
    border: 2px solid #bc9f5f;
}

.btn-secondary:hover {
    background-color: #bc9f5f;
    color: #182739;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Secciones generales */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    color: #bc9f5f;
}

/* Sección Quiénes somos */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-text strong {
    color: #bc9f5f;
}

.about-icons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.icon-item {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: transform 0.3s;
}

.icon-item:hover {
    transform: translateY(-5px);
}

.icon-item i {
    font-size: 2.5rem;
    color: #bc9f5f;
    margin-bottom: 15px;
}

.icon-item h3 {
    font-size: 1.2rem;
    color: #f8f9fa;
}

/* Sección Servicios */
.services {
    background-color: rgba(255, 255, 255, 0.03);
}

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

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

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-icon {
    font-size: 3rem;
    color: #bc9f5f;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #f8f9fa;
}

.service-card p {
    margin-bottom: 20px;
    color: #e9ecef;
}

/* Sección Agentes */
.agents-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.agents-text h2 {
    text-align: left;
}

.agents-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.agents-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Sección Contacto */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-item {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    color: #bc9f5f;
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item h3 {
    margin-bottom: 5px;
    color: #bc9f5f;
}

.contact-map {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background-color: #0f1a27;
    padding: 50px 0 20px;
}

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

.footer-logo img {
    height: 40px;
    margin-bottom: 15px;
}

.footer-logo p {
    color: #adb5bd;
}

.footer-links h3, .footer-legal h3 {
    color: #bc9f5f;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul, .footer-legal ul {
    list-style: none;
}

.footer-links li, .footer-legal li {
    margin-bottom: 10px;
}

.footer-links a, .footer-legal a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover, .footer-legal a:hover {
    color: #bc9f5f;
}

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

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

/* Animaciones */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s, transform 0.6s;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s, transform 0.6s;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* =========================================== */
/* ESTILOS CORREGIDOS PARA EL MENÚ MÓVIL */
/* =========================================== */

.no-scroll {
    overflow: hidden !important;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content,
    .agents-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex !important;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background-color: #182739;
        transition: left 0.3s ease-in-out;
        padding: 20px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav.active {
        left: 0 !important;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-list li {
        margin: 10px 0;
        width: 100%;
    }
    
    .nav-list a {
        padding: 12px 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .has-submenu > a {
        position: relative;
    }
    
    .has-submenu > a::after {
        content: '▼';
        font-size: 0.8rem;
        margin-left: 8px;
        transition: transform 0.3s;
    }
    
    .has-submenu.active > a::after {
        transform: rotate(180deg);
    }
    
    .has-submenu .submenu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        background-color: rgba(255, 255, 255, 0.05) !important;
        border: none !important;
        margin-top: 10px;
        margin-left: 20px;
        display: none;
    }
    
    .has-submenu.active .submenu {
        display: block !important;
    }
    
    .submenu li {
        margin: 0;
    }
    
    .submenu a {
        padding: 10px 15px !important;
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-icons {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero {
        height: 80vh;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
}