@font-face {
    font-family: "Fuente";
    src: url("fonts/Allura-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Fuente2";
    src: url("fonts/PlayfairDisplay-VariableFont_wght.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}


/* CONFIGURACIÓN GENERAL */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

/* CONFIGURACIÓN ENCABEZADO */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: black;
    transition: background 0.3s ease;
}

header.scrolled .hamburger span {
    background: white;
}

/* BARRA SUPERIOR */

header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 50px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 200px;
    box-sizing: border-box;
    z-index: 1000;

    transition: background-color 0.3s ease;
}


header.scrolled {
    background-color: rgba(60, 120, 200, 0.85);
}
header.scrolled .menu a {
    color: white; /* el color que quieras al hacer scroll */
}

.logo img {
    height: 70px;   /* controla tamaño */
    width: auto;
}

.menu {
    display: flex;
    align-items: center;
    gap: 50px;
}

.menu a {
    color: black;
    text-decoration: none;
    white-space: nowrap;
    font-weight: bold;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

#btn-proyectos::after {
    content: "▾";                 /* flecha hacia abajo */
    margin-left: 6px;
    font-size: 0.75em;
    display: inline-block;
    transition: transform 0.3s ease;
}

/* CERRAMOS CONFIGURACION DE ENCABEZADO */
/* DROPDOWN DE PROYECTOS */

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    display: none;
    padding: 10px 10px;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    z-index: 999;
    gap: 10px 0px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.8);
}

.dropdown.active .dropdown-menu {
    display: grid;
}

.dropdown-menu a {
    font-size: 0.95rem;
    text-align: center;
    
    white-space: nowrap;

    transition: color 0.2s ease;
}

.dropdown-menu a:hover {
    color: #1e63d6; /* azul profesional */
}

header.scrolled .dropdown-menu a {
    color: black;
}

header.scrolled .dropdown-menu a:hover {
    color: #1e63d6;
}

/* FIN DEL DROPDOWN DE PROYECTOS */

/* FONDO PRINCIPAL */
.fondo {
    
    margin-top: 0px;
    background: url("Arte-Macas.webp") top center / cover no-repeat;
    min-height: 200vh; 
    
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    align-items: center;
    padding-top: 0px;
}
.fondo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55); /* 👈 controla la claridad */
    z-index: 1;
}

/* TÍTULO  DE QUIENES SOMOS*/

.titulo-quienes {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-top: 120px;
    margin-bottom: 50px;
    color: #222;
    z-index: 2;
    font-family: "Fuente2", cursive;

}

/* CONTENEDOR GENERAL */
.quienes-contenido {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 400px;
    z-index: 2;
    padding-bottom: 0px;

}

/* IMAGEN IZQUIERDA */
.quienes-img {
    width: 20%;
    display: flex;
    justify-content: center;
    padding-left: 150px;
}

.quienes-img img {
    max-width: 100%;
    height: auto;
}

/* TEXTO DERECHO CON FONDO BLANCO */
.quienes-texto {
    width: 60%;
    background: rgba(255, 255, 255, 0.85);
    padding: 20px 80px;
    box-sizing: border-box;
    border-radius: 20px;
    /* esto hace que se pegue al borde derecho */
    margin-left: auto;
}

.quienes-texto p {
    font-size: 1.5rem;
    line-height: 1.5;
    color: #444;
    text-align: justify;
    
}
/* CERRAMOS QUIENES SOMOS  */

.bloque {
    width: 100%;
    display: flex;
    align-items: center;
    min-height: 400px;
    flex-wrap: wrap;
    z-index: 2;

}
/* CONTENEDOR DEL TÍTULO */
.bloque-titulo {
    width: 100%;          /* mismo ancho que el texto */
    margin-bottom: 0px;
}

/* ESTILO DEL TÍTULO */
.bloque-titulo h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #222;         /* negro */
    margin: 0;
    font-family: "Fuente2", cursive;
}

.bloque-izq .bloque-titulo {
    margin-left: 350px;   /* igual que el padding del texto */
    text-align: left;
}

.bloque-der .bloque-titulo {
    margin-right: 350px;
    padding-top: 50px;
    text-align: right;
}

.bloque-texto {
    width: 55%;
    background: rgba(255, 255, 255, 8.5);
    padding: 20px 80px;
    border-radius: 20px;
    box-sizing: border-box;
}

.bloque-texto p {
    font-size: 1.5rem;
    line-height: 1.7;
    color: black;
    text-align: justify;
    
}

.bloque-img {
    width: 30%;
    height: auto;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;

}

.bloque-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.bloque-izq {
    justify-content: flex-start;
    padding-top: 50px;
    padding-bottom: 20px;
}

.bloque-izq .bloque-texto {
    margin-left: 0;
}

.bloque-izq .bloque-img {
    margin-left: auto;
    padding-right: 150px;
    
}

.bloque-der {
    justify-content: flex-start;
    padding-bottom: 50px;
}

.bloque-der .bloque-texto {
    order: 2;
    margin-left: auto;
}

.bloque-der .bloque-img {
    order: 1;
    padding-left: 150px;
}

/* ===== BIOGRAFÍAS ===== */

.biografias {
    width: 100%;
    padding-bottom: 100px;
    z-index: 2;
}

/* TÍTULO BIOGRAFÍAS */
.bio-titulo {
    width: 100%;
    text-align: center;
    margin-bottom: 60px;
    z-index: 2;
}

.bio-titulo h2 {
    font-size: 3rem;
    font-weight: 700;
    color: black;
    font-family: "Fuente2", cursive;
    margin: 0;
}

/* CONTENEDOR FLEX */
.bio-contenido {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 400px;
}

/* IMAGEN IZQUIERDA */
.bio-img {
    width: 40%;
    padding-left: 100px; /* 👈 separación del lateral */
    box-sizing: border-box;
   
}

.bio-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* TEXTO DERECHO PEGADO AL BORDE */
.bio-texto {
    width: 55%;
    margin-left: auto;   /* 👈 empuja al borde derecho */
    background: white;
    padding: 60px 80px;
    box-sizing: border-box;
    border-radius: 20px;
}

.bio-texto p {
    font-size: 1.4rem;
    line-height: 1.7;
    color: #444;
    text-align: justify;
    
}

/* CERRAMOS FONDO PRINCIPAL */
/* EMPEZAMOS FOOTER */

.footer {
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    width: 100%;
    padding: 5px;

}
.footer-contenido {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
 
}
.footer-columna p {
    padding: 5px 10px;
    margin: 0;
    font-size: 1rem;
}

.footer-columna iframe {
    width: 100%;
    height: 200px;
    border-radius: 8px;
}

.redes {
    display: grid;
    grid-template-columns: repeat(2, 50px);
    gap: 40px;
    padding: 20px 150px;
}

.redes a {
    width: 60px;
    height: 60px;
    display: block;
}

.redes img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-separador {
    border: none;
    height: 1px;
    background-color: white;
    margin: 0px;
}
.footer-derechos {
    text-align: center;
    font-size: 0.9rem;
    color: #ccc;
    margin: 2;
}

/*
CONFIGURACION DEL BOTON DE WHATSAP
*/
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 80px;
    height: 80px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    z-index: 2000;

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float::after {
    content: "Chatea con nosotros";
    position: absolute;
                 /* arriba del botón */
    right: 0%;
    top: 40%;
    transform: translateX(-50%) translateY(10px);

    background: rgba(255, 255, 255, 0.65);
    color: black;
    padding: 10px 16px;
    border-radius: 10px;

    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}


.whatsapp-float img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* o cover si quieres que llene más */
    display: block;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.whatsapp-float:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}


@media (max-width: 1200px) {

    /* ============================================  */
    /* CONFIGURACION DEL ENCABEZADO EN CELULAR   */
    /* ============================================  */

    header {
        padding: 50px 60px;
        height: 110px;
    }
    .hamburger {
        display: flex;
    }

    .hamburger span {
        width: 45px;
        height: 5px;
    }

    .logo img {
        height: 100px;   /* controla tamaño */
    }


    .menu {
        position: absolute;
        top: 100%;
        right: 10px;

        flex-direction: column;
        gap: 20px;

        background: rgba(255, 255, 255, 0.85);
        padding: 20px;
        border-radius: 12px;

        width: 30vw;          /* 👈 CLAVE */
        max-width: 320px;     /* 👈 NO más grande */
        max-height: 50vh;     /* 👈 no se sale */
        display: none;
    }

    .menu a {
        font-size: 1.8rem;
        padding: 2px 0;
    }

    #btn-proyectos::after {
        content: "◀";             /* flecha a la izquierda */
        margin-left: 10px;
    }
    
    header .menu.active {
        display: flex;
    }

    header.scrolled .menu a {
        color: black;
    }

    /* ============================================  */
    /* CONFIGURACION DEL MENU PROYECTOS PARA CELULAR   */
    /* ============================================  */

    .dropdown {
        position: relative;
    }

    .dropdown-menu {
        top: -50%;
        right: 160%;
        left: auto;

        transform: none;

        grid-template-columns: repeat(1, 1fr); /* ✅ 3 columnas */
        grid-auto-rows: auto;                  /* filas automáticas */

        min-width: 10px; /* 3 × 180px */
        padding: 15px;

        gap: 15px;
    }

    .dropdown-menu a{
        font-size: 1.8rem;
    }

    /* ============================================  */
    /* CONFIGURACION CUERPO DE LA PAGINA   */
    /* ============================================  */

    /* ===== QUIÉNES SOMOS ===== */

    .titulo-quienes {
        font-size: 3.5rem;
        margin-top: 100px;
        margin-bottom: 30px;
    }

    .quienes-contenido {
        flex-direction: column;
        align-items: stretch;
        padding: 0 20px;
        box-sizing: border-box;
        
        
    }

    .quienes-img {
        width: 100%;
        box-sizing: border-box;
        padding: 0;
        margin-bottom: 20px;
        height: 820px;
        
    }

    .quienes-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 20px;
    }

    .quienes-texto {
        width: 100%;
        padding: 20px;
        margin-left: 0;
        border-radius: 20px;
    }

    .quienes-texto p {
        font-size: 2.2rem;
        line-height: 1.5;
    }

    /* ===== BLOQUES ===== */

    .bloque {
        flex-direction: column;
        align-items: stretch;

        padding: 20px 20px;
        box-sizing: border-box;
    }

    .bloque-titulo {
        width: 100%;
        margin: 0 0 15px 0;
        
    }

    .bloque-titulo h2 {
        font-size: 3.5rem;
    }

    .bloque-texto {
        width: 100%;
        padding: 20px;
        margin-left: 0;
        border-radius: 20px;
    }

    .bloque-texto p {
        font-size: 2.2rem;
        line-height: 1.5;
    }

    .bloque-img {
        width: 100%;
        height:620px;
        padding: 0;
        margin-top: 20px;
        box-sizing: border-box;
        
    }

    .bloque-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 20px;
    }

    /* eliminamos offsets gigantes */
    .bloque-izq .bloque-img,
    .bloque-der .bloque-img,
    .bloque-izq .bloque-texto,
    .bloque-der .bloque-texto {
        margin: 0;
        padding: 0;
    }

    .bloque-izq .bloque-texto,
    .bloque-der .bloque-texto {
        padding-left: 10px;
        padding-right: 10px;
    }
    .bloque-izq .bloque-titulo,
    .bloque-der .bloque-titulo {
        margin-left: 0;
        margin-right: 0;
        padding-top: 0;

        text-align: center;
    }

    /* ===== BIOGRAFÍAS ===== */

    .bio-titulo h2 {
        font-size: 3.5rem;
        padding: 0px;
    }

    .bio-contenido {
        flex-direction: column;
        align-items: stretch;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .bio-img {
        width: 100%;
        box-sizing: border-box;
        padding: 0;
        margin-top: 0px;
        margin-bottom: 20px;
        height: 920px;
    }

    .bio-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 20px;
    }

    .bio-texto {
        width: 100%;
        padding: 20px;
        margin-left: 0;
        border-radius: 20px;
    }

    .bio-texto p {
        font-size: 2.2rem;
        line-height: 1.5;
    }

    

    /* ============================================  */
    /* FOOTER PARA CELULAR      */
    /* ============================================  */

    .footer {
    padding: 0;
  }

  .footer-contenido {
    display: grid;
    grid-template-columns: 0.8fr 1.4fr 0.6fr; /* 👈 mapa domina */
    gap: 10px;
    padding: 20px;
    align-items: stretch; /* 👈 todas las columnas mismo alto */
  }

  /* COLUMNA 1 – INFO */
  .footer-columna p {
    font-size: 1.2rem;      /* 👈 más pequeña */
    line-height: 1.3;
    padding: 2px 4px;
    text-align: left;
  }

  /* COLUMNA 2 – MAPA */
  .footer-columna iframe {
    width: 120%;
    height: 100%;           /* 👈 llena TODO el alto */
    min-height: 180px;
    border-radius: 8px;
  }

  /* COLUMNA 3 – REDES */
  .redes {
    display: flex;
    flex-direction: column;
    align-items: flex-end;  /* 👈 pegado a la derecha */
    justify-content: center;
    gap: 12px;
    padding-top: 10px;
    padding-right: 40px;
  }

  .redes a {
    width: 55px;            /* 👈 más pequeños */
    height: 55px;
  }

  .footer-derechos {
    font-size: 0.7rem;
    padding: 6px;
  }

    /* ============================================  */
    /* ICONO DE WATSAP CELULAR     */
    /* ============================================  */


    .whatsapp-float {
        width: 80px;
        height: 80px;
        bottom: 18px;
        right: 18px;
    }

    .whatsapp-float img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* o cover si quieres que llene más */
        display: block;
    }

    .whatsapp-float::after {
        display: none;
    }

}
