* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: auto;   /* que el body crezca con el contenido */
    margin: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #368dff;
    line-height: 1.6;
}

.container {
    width: 80%;
    margin: 20px auto;
    text-align: center;
}

#logoAdmin {
    width: 120px;
    cursor: pointer;
    transform: scale(1.6);
    transform-origin: center;
    margin-top: 15px;     
    margin-bottom: 30px;   
    border-radius: 10px;  
    transition: transform 0.3s ease;
}


.fondo-principal {
    position: relative;
    background-image: url(/CIC-rama-pico/Images/cic.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 20px;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-height: 510px;   /* se adapta al contenido */
    overflow: hidden;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;
}

.fondo-principal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(60, 60, 204, 0.3);
    z-index: 0;
    border-radius: 8px;
}

.fondo-principal .texto-rectangulo {
    background-color: #368dff;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #fff;
    color: #368dff;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    background-color: #368dff;
    color: #fff;
    transform: scale(1.05);
}

/* MAPA */
.mapa {
    width: 80%;           /* ✅ mismo ancho que la cabecera */
    max-width: 900px;
    margin: 30px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.mapa iframe {
    width: 100%;
    height: 400px;        /* ✅ más alto para que se vea completo */
    border: 0;
}

/* LOGO */
.icono-form {
    width: 60px;
    height: auto;
}

.logo-abajo {
    margin-top: 20px;
    text-align: center;
}

.logo-abajo .icono-form {
    width: 80px;
    height: auto;
    display: inline-block;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 15px 0;
    background-color: #ffffff;
    color: #000000;
    margin-top: auto;
}

/* 📱 Responsive */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    .fondo-principal {
        padding: 60px 15px;
        min-height: auto;
    }

    .fondo-principal .texto-rectangulo {
        max-width: 100%;
        padding: 15px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .mapa iframe {
        height: 300px;
    }

    .logo-abajo .icono-form {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .fondo-principal {
        padding: 40px 10px;
    }

    .fondo-principal h1 {
        font-size: 22px;
    }

    .fondo-principal p {
        font-size: 14px;
    }

    .btn {
        font-size: 13px;
        padding: 8px 16px;
    }

    .mapa iframe {
        height: 220px;
    }
}


footer {
    text-align: center;
    font-size: 12px;
    color: #aaa;
    padding: 15px 10px;
    background-color: #ffffff;
}

footer .produced-by {
    margin-top: 6px;
    font-size: 11px;
    color: #999;
}

footer .produced-by a {
    color: #368dff;
    text-decoration: none;
    margin: 0 4px;
}

footer .produced-by a:hover {
    text-decoration: underline;
}