/* ============================================================
   VARIABLES Y TIPOGRAFÍAS
   ============================================================ */

:root {
    --color-primario: #347176;
    --color-secundario: #58ccd4;
    --color-oscuro: #1f3d2b;
    --color-claro: #F2F7F7;
    --color-blanco: #FFFFFF;
    --color-acento: #62e2eb;
}

.fuenteTitulos-A { font-family: "Nanum Pen Script", cursive; }
.fuenteTitulos-B { font-family: "Courgette", cursive; font-weight: 400; }
.fuenteLeer-A    { font-family: "Open Sans", sans-serif; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
    overflow-x: hidden;
    overflow-y: auto;
}




/* ============================================================
   LAYOUT PRINCIPAL
   ============================================================ */

.contesection {
    width: 100%;
    display: flex;
    flex-direction: row;
    height: 100vh;        /* ← CORRECCIÓN */
}


/* ============================================================
   SECTION 1 (Texto + Logo)
   ============================================================ */

#section1 {
    width: 24%;
    padding: 10px 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: linear-gradient(180deg, #347176 0%, #4fa3a8 100%);
    color: var(--color-blanco);
    gap: 8px;
}

#section1texto {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    
}

#section1logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

#section1logo img {
    width: 100px;
    height: auto;
}


/* ============================================================
   SECTION 2 (Imagen de fondo)
   ============================================================ */

#section2 {
    width: 76%;
    background-image: url("media/terraza.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #000;
    height: auto;        /* ← CORRECCIÓN */
}
#section1texto h1,
#section1texto h3 {
    margin: 2px 0;
    line-height: 1.1;
    font-size: 1.9rem;
    margin-bottom: 10px;
}


/* ============================================================
   RESPONSIVE REAL
   ============================================================ */

@media (max-width: 900px) {

    .contesection {
        flex-direction: column;
        height: auto;     /* ← CORRECCIÓN */
    }

    #section1,
    #section2 {
        width: 100%;
        height: auto;     /* ← CORRECCIÓN */
    }

    #section1 {
        padding: 30px 20px;
        gap: 18px;
    }

    #section2 {
        height: 45vh;     /* ← CLAVE: la imagen SIEMPRE se ve */
        background-size: cover;
        background-position: center;
    }
}
/* TABLET 600–900px */
@media (min-width: 600px) and (max-width: 900px) {

    .contesection {
        flex-direction: row;
        height: 100vh;
    }

    #section1 {
        width: 40%;   /* más espacio para textos */
        padding: 40px 30px;
        gap: 20px;
    }

    #section2 {
        width: 60%;   /* foto más pequeña */
        height: 100vh;
        background-size: cover;
        background-position: center;
    }

    #section1texto h3 {
        font-size: 1.4rem;
        line-height: 1.3;
    }
}


@media (max-width: 600px) {

    #section1 {
        padding: 24px 16px;
        gap: 14px;
    }

    #section1texto h1 {
        font-size: 1.6rem;
    }

    #section1texto h3 {
        font-size: 1rem;
    }

    #section2 {
        height: 40vh;     /* ← Ajuste para móviles pequeños */
    }
    @media (max-width: 600px) {

    .contesection {
        height: 100vh; /* pantalla completa */
    }

    #section1 {
        height: 60vh;  /* textos ocupan más */
        padding: 30px 20px;
    }

    #section2 {
        height: 40vh;  /* foto ocupa menos */
        background-size: cover;
        background-position: center;
    }
}

}
