/*PALETA DE COLORES*/
:root {
    --blanco: #ffffff;
    --negro: #000000;
    --primario: #695a95;
    --secundario: #e4dce8;
    --terciario: #6fb6a5;
    --tipografia_titulo: "Radio Canada", sans-serif;
    --tipografia_texto: "Montserrat", sans-serif;
    --header-height-desktop: 130px; 
    --header-height-mobile: 150px; 
}

/*RESET GENERAL*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16.8px;
    scroll-behavior: smooth;
    padding-top: var(--header-height-desktop);
}

body {
    background-color: var(--blanco);
    overflow-x: hidden;
    padding-top: var(--header-height-desktop); 
}

body h1, h2, h3{
    font-family: var(--tipografia_titulo);
}

body p, li, a {
    font-family: var(--tipografia_texto);
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/*NAVBAR*/
header {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--blanco); 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container{
    max-width: 1280px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}

.header-logo img{
    height:80px;
}

.header-nav{
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px; 
    font-size: 1.3rem;
}

.nav-list a{
    text-decoration: none;
    font-weight: 600; 
    color: var(--primario);
    padding: 8px 15px; 
    background-color: transparent; 
    border-radius: 10px;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease; 
}

.nav-list a:hover{
    background-color: var(--primario);
    color: var(--blanco);
}


.menu-toggle {
    display: none; 
    background: none;
    border: none;
    cursor: pointer;
    font-size: 2rem;
    color: var(--primario);
    z-index: 1001; 
}

.header-nav {
    transition: transform 0.3s ease-out;
}

/*SECCIÓN PRINCIPAL DE CONTACTO */
.contact-area {
    padding: 80px 20px;
    background-color: var(--blanco); 
}

.contact-header-full-width {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
    text-align: center;
}

.contact-header-full-width h2 {
    font-size: 2.5em;
    color: var(--primario); 
    margin-bottom: 10px;
    font-weight: 700;
}

.contact-header-full-width .subtitle {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1em;
    color: #444;
    font-style: italic; 
    padding: 10px 0;
}

/* CONTENEDOR DE DOS COLUMNAS */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 60px; 
    align-items: center; 
    flex-direction: row; 
}

.contact-illustration {
    flex: 0 0 45%; 
    max-width: 45%; 
    display: flex; 
    justify-content: center;
    align-items: center;
    padding: 0;
}

.contact-illustration img {
    max-width: 100%;
    height: auto;
    display: block; 
    border-radius: 8px;
}

.contact-content {
    flex: 1; 
    padding: 0;
}

.contact-info-card {
    background-color: var(--blanco);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    border: 1px solid var(--secundario);
}

.contact-info-card h3 {
    color: var(--primario);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.6em;
    padding-bottom: 5px;
}

.info-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    gap: 10px; 
}

.location-info .info-group {
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--secundario); 
}
.location-info .info-group:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-icon {
    font-size: 1.4em; 
    color: var(--terciario); 
    min-width: 30px; 
    text-align: center;
    padding-top: 3px;
    flex-shrink: 0; 
}

.info-group-text {
    flex: 1; 
}

.info-group p, .info-group a {
    margin: 0;
    font-size: 1em;
    color: #333;
    text-decoration: none;
}

.info-group strong {
    color: var(--primario);
}

.info-group ul {
    list-style: none;
    padding-left: 0; 
    margin-top: 5px;
    font-size: 0.95em;
}
.info-group ul li {
    margin-bottom: 5px;
    color: #555;
    position: relative;
    padding-left: 15px; 
}
.info-group ul li::before {
    content: '•'; 
    color: var(--terciario);
    position: absolute;
    left: 0;
    top: 0;
}

.map-button-container {
    text-align: center; 
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px dashed var(--secundario);
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
    font-size: 1em;
}

.map-button {
    background-color: var(--primario); 
    color: var(--blanco);
}

.map-button:hover {
    background-color: #55487a; 
}


/*Footer*/
footer{
    background-color: var(--primario); 
    color: var(--blanco);
    padding: 40px 0;
}

.footer-contenedor{
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 40px;
}

.footer-seccion{
    display: flex;
    flex-direction: column;
}

.footer-seccion a{
    color: var(--blanco);
    text-decoration: none;
    transition: color 0.3s;
    margin-bottom: 5px;
}

.footer-seccion a:hover{
    color: var(--terciario);
}

.footer-seccion h3{
    font-size: 1.3rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secundario);
    padding-bottom: 5px;
}

.footer-seccion p {
    margin-bottom: 8px;
}

.footer-iconos{
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.footer-iconos i{
    color: var(--blanco);
    font-size: 1.8rem;
    transition: color 0.3s;
}

.footer-iconos i:hover{
    color: var(--terciario);
}


/* AJUSTES RESPONSIVE (MEDIA QUERIES) */

/* 1. Monitores pequeños (Hasta 1440px / 1080p) */
@media (max-width: 1440px) {
    html {
        font-size: 14.7px; 
    }
}

/* 2. Tablets y dispositivos medianos (900px y menor) */
@media (max-width: 900px) {
    html {
        font-size: 12.6px; 
    }

    .header-container {
        justify-content: space-between; 
        align-items: center; 
        padding: 15px 20px;
        height: 80px; 
    }
    
    .header-logo img {
        height: 50px; 
    }

    body {
        padding-top: 95px; 
    }

    .menu-toggle {
        display: block; 
        font-size: 2.2rem;
        align-self: center;
    }

    .header-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 75%; 
        height: 100vh;
        background-color: var(--primario);
        box-shadow: -4px 0 10px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        transform: translateX(100%);
        padding-top: 80px; 
        overflow-y: auto; 
    }
    
    .header-nav.is-open {
        transform: translateX(0); 
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 20px;
    }
    .nav-list a {
        font-size: 1.5rem;
        color: var(--blanco);
        border-bottom: 2px solid transparent;
        width: 100%;
        padding: 10px 15px;
    }
    .nav-list a.active {
        border-bottom-color: var(--terciario); 
    }

    /* Botón de Contacto */
    .nav-list .contact-btn {
        background-color: var(--terciario);
        color: var(--negro); 
        border-bottom: none; 
    }

    .nav-list .contact-btn:hover {
        background-color: var(--terciario);
        color: var(--negro); 
        border-bottom: none;
    }

    .contact-area {
        padding: 60px 0; 
    }

    .contact-container {
        flex-direction: column;
        gap: 40px;
    }

    .contact-illustration,
    .contact-content {
        flex: 1 1 100%; 
        max-width: 100%;
        width: 100%;
        padding: 0 20px;
    }

    .contact-illustration {
        order: 1;
        max-width: 80%; 
        margin: 0 auto;
    }

    .contact-content {
        order: 1; 
    }

    .contact-header-full-width h2 {
        font-size: 2rem;
    }
    .contact-header-full-width .subtitle {
        font-size: 1rem;
    }
}

/* 3. Móviles grandes y Tablet vertical (768px y menor) */
@media (max-width: 768px) {
    .footer-contenedor {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* 4. Teléfonos y móviles muy pequeños (500px y menor) */
@media (max-width: 500px) {
    html {
        font-size: 10.5px;
    }

    .header-logo img {
        height: 35px; 
    }
    
    .container,
    .header-container,
    .footer-contenedor {
        padding-left: 10px;
        padding-right: 10px;
    }

    .contact-area {
        padding: 40px 0;
    }
    .contact-illustration {
        max-width: 90%; 
    }
    .contact-header-full-width h2 {
        font-size: 1.8rem;
    }
    .contact-info-card {
        padding: 15px;
    }
    .contact-info-card h3 {
        font-size: 1.4em;
    }
}