/* Variables */
:root {
    --primary-dark: #0B2545; 
    --accent-cream: #FAF3E0;   
    --gray-bg: #eaeaea;  
    --another-gray-bg: #464646;
    --text-white: #FFFFFF;     
    --text-dorado: #C8A24C;
    --golden-deg: #8c650c;
    --border-light: rgba(250, 243, 224, 0.2);
}
/* General syles */
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-white);
    background-color: var(--primary-dark);
}

section {
    scroll-margin-top: 100px;
    padding: 80px 80px;
    width: 100%;
}

a {
    text-decoration: none;
}


/* Header style */
header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 100px 15px;

    background-color: var(--primary-dark);
    border-bottom: 1px solid var(--border-light);
}
.main-logo {
    display: flex;
    gap: 20px;
}

.main-logo p {
    font-weight: 900;
    padding: 0;
    margin: 0;
    font-size: 30px;
    color: var(--accent-cream);
}

.logo-img {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    border-radius: 100%;
    background-color: var(--accent-cream);

    align-items: center;
}

.logo-img img {
    height: 80%;
}
/* Navigator styles*/
nav ul {
    display: flex;
    gap: 20px;
    width: 100%;
    padding: 0;
}

nav ul li {
    list-style: none;
}
nav ul li a {
    color: white;
    font-weight: bolder;
    padding: 2px 0;
    transition: all .3s ease-in-out;
    border-bottom: 2px solid var(--primary-dark);
}

nav ul li a:hover {
    color: var(--text-dorado);
    border-bottom: 2px solid var(--text-dorado);
}


.contact-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.1);
    max-height: 300px;
}

/* CLASES DE FONDOS COMPLETOS */
.bg-gray {
    background-color: var(--gray-bg);
}
.bg-blue {
    background-color: var(--primary-dark);
}

.bg-white {
    background-color: var(--text-white);
}

.another-gray-bg {
    background-color: var(--another-gray-bg);
}

.nav-menu {
    display: table-cell;
    text-align: right;
    vertical-align: middle;
}
/* 3. HERO BANNER SECTION (CON LA IMAGEN SUBIDA) */
.hero-section {
    position: relative;
    background: linear-gradient(to right,
    var(--primary-dark) 10%,
    #0b25452f),
    url('../images/mainimg.webp') center center;
    background-size: cover;
    padding: 150px 80px;
    text-align: left;
}
.hero-content {
    max-width: 650px;
}
.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-white);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: -1px;
}
.hero-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    font-weight: 300;
    text-wrap: pretty;
}
.btn-learn-more {
    display: inline-block;
    background: linear-gradient(
        to right,
        var(--text-dorado),
        var(--golden-deg)
        );
    color: var(--text-white);
    text-decoration: none;
    padding: 12px 28px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s, background-color 0.3s;
}
.btn-learn-more:hover {
    transform: translateY(-2px);
    background-color: #f2e7c9;
}

/* Section styles */
.section-title {
    font-size: 40px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 30px 0;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--text-dorado);
    padding-bottom: 15px;
    color: var(--text-dorado);
}

/* 4. SERVICES SECTION (3 COLUMNAS) */
.services-container{
    width: 100%;
    display: flex;
    justify-content: space-around;
    gap: 50px;
}

.services-container article{
    width: 25%;
}

.service-icon {
    font-size: 36px;
    color: var(--text-dorado);
    margin-bottom: 20px;
}
.service-column h3 {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
    color: var(--primary-dark);
}
.service-list {
    padding-left: 10px;
    list-style: none;
}
.service-list li {
    font-size: 15px;
    color: black;
    margin-bottom: 12px;
    line-height: 1.5;
}

.about-content {
    display: flex;
    width: 100%;
    align-items: stretch;
    gap: 30px;
    margin: 0 auto;
}

.about-txt {
    color: var(--primary-dark);
    font-size: 20px;
    flex: 2;
}

.about-txt p {
    width: 100%;
    margin-top: 0;
    margin-bottom: 30px;
    line-height: 40px;
    text-wrap: pretty;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Contact styles */
.contact-container {
    display: flex;
    gap: 30px;
    width: 100%;
    justify-content: center;
}
.info-details {
    font-size: 18px; 
    color: rgba(255,255,255,0.95);
    line-height: 1.8;
    text-align: left;
    margin-top: 0px;
}
.info-details p { 
    margin-bottom: 15px; 
}
.info-details i {
    color: var(--accent-cream);
    margin-right: 12px;
    font-size: 22px; 
}
.info-details a {
    color: var(--accent-cream);
    text-decoration: none;
    font-weight: 600;
}

/* 6. FOOTER SECTION */
.footer-section {
    background-color: #06172e; 
    padding: 30px 80px;
    border-top: 1px solid var(--border-light);
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}
.footer-links { margin-bottom: 15px; }
.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--accent-cream); }
.footer-links i { margin-right: 5px; }

/* =======================================================
    📱 ADAPTACIÓN PARA MÓVILES (RESPONSIVE DESIGN)
    ======================================================= */
@media (max-width: 850px) {
    #main {
        scroll-margin-top: 500px;
    }
    /* header */
    .main-nav {
        display: flex;
        flex-direction: column; 
        padding: 10px 0;
        text-align: center;
    }

    /* 2. Hero Banner (Portada) más compacta */
    .hero-section {
        padding: 80px 20px;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 32px; 
    }
    /* About us section */
    .about-content {
        flex-direction: column;
    }
    .about-txt {
        width: 100%;
    }

    .about-txt p {
        font-size: 15px;
        line-height: 25px;
    }
    .about-image img {
        position: static;
        height: 300px;
    }
    /* 3. Espaciado general de las secciones */
    section {
        padding: 70px 20px;
    }

    /* 4. Apilar las 3 columnas de Servicios */
    .services-container, .service-column {
        display: block; 
        width: 100%;
    }
    .services-container article{
        margin-bottom: 40px;
        padding: 0;
        width: 100%;
    }

    /* 5. Apilar la sección de Contacto e Imagen */
    .contact-container {
        flex-direction: column !important; 
        gap: 30px !important;
    }
    .contact-info-left, .contact-image-right {
        max-width: 100% !important;
        text-align: center !important;
    }
    .info-details {
        text-align: center !important; 
    }
    .footer-section {
        padding: 30px 20px;
    }
}