/* styles.css */
body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    /* background: #f6f6f6; */
    /* color: #333; */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 160px;
    /* antes 80px */
    height: auto;
    z-index: 0;
}

.container {
    text-align: center;
}

.titulo {
    font-size: 3em;
    margin: 0.2em 0;
    font-weight: 700;
    color: #dcdcdc;
}

.subtitulo {
    font-size: 1.5em;
    margin-bottom: 1em;
    font-weight: 400;
    color: #939393;
}

.menu button {
    margin: 0.5em;
    padding: 0.8em 1.5em;
    font-size: 1em;
    background-color: #93C01F;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu button:hover {
    background-color: #7aa51b;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-contenido {
    background-color: white;
    color: black;
    padding: 2em;
    border-left: 10px solid #93C01F;
    /* barra vertical verde */
    border-radius: 10px;
    width: 60%;
    max-width: 600px;
    max-height: 80%;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.4s ease;
}

.cerrar {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5em;
    cursor: pointer;
    color: #333;
}

.oculto {
    display: none;
}

.video-fondo {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: -2;
}

.filtro-negro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: -1;
}

.formulario-contacto {
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin-top: 1em;
}

.formulario-contacto label {
    font-weight: 600;
}

.formulario-contacto input,
.formulario-contacto textarea {
    padding: 0.6em;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Montserrat', sans-serif;
}

.formulario-contacto button {
    background-color: #93C01F;
    color: white;
    border: none;
    padding: 0.8em;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

.formulario-contacto button:hover {
    background-color: #7aa51b;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.franja-modal {
    position: relative;
    margin-top: 2em;
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 0 0 10px 10px;
}

.franja-modal img:first-child {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    display: block;
}

.logo-franja {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 60px;
    height: auto;
    opacity: 0.9;
}

.intro-servicios {
    text-align: center;
    margin-bottom: 1em;
    font-size: 1.1em;
}

.grid-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1em;
}

.item-servicio {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 1em;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.item-servicio img {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.5em;
}

.item-servicio h3 {
    margin: 0.5em 0 0.3em;
    font-size: 1em;
    color: #2d2d2d;
}

.item-servicio p {
    font-size: 0.9em;
    color: #555;
}

.tienda-construccion {
    text-align: center;
    padding: 1em;
}

.tienda-construccion img {
    width: 150px;
    margin-bottom: 1em;
    opacity: 0.9;
}

.tienda-construccion p {
    font-size: 1em;
    color: #444;
    margin-bottom: 0.5em;
}

.pronto {
    font-weight: bold;
    color: #1c7f47;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animacion-fade {
    animation: fadeUp 0.8s ease forwards;
}

body {
    cursor: url("cursor-logo.png") 5 5, auto;
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    /* capa oscura translúcida */
    color: white;
    font-size: 0.9em;
    padding: 0.8em 1em;
    text-align: center;
    z-index: 1000;
}

.footer-contenido {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-nombre {
    font-weight: 600;
}

.footer-redes a {
    margin: 0 0.4em;
    font-size: 1.2em;
    color: white;
    text-decoration: none;
}

.footer-redes a:hover {
    color: #93C01F;
}

.footer hr {
    margin: 0.5em 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-links a {
    color: white;
    margin: 0 0.4em;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.formulario-contacto {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.formulario-contacto label {
    font-weight: bold;
    /* color: white; */
}

.formulario-contacto input,
.formulario-contacto textarea {
    padding: 10px;
    border-radius: 8px;
    /* border: none; */
    background-color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.formulario-contacto button {
    background-color: #2f7350;
    /* color: white; */
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.formulario-contacto button:hover {
    background-color: #256141;
}

.info-contacto {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    /* color: white; */
    font-size: 14px;
}

.info-contacto p {
    margin: 6px 0;
}

.info-contacto a {
    /* color: #a1f5c2; */
    text-decoration: none;
}

.info-contacto a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .modal {
        width: 90%;
        max-height: 90%;
        padding: 20px;
    }

    .grid-servicios {
        grid-template-columns: 1fr;
        /* 1 sola columna en móvil */
        gap: 16px;
    }

    .formulario-contacto input,
    .formulario-contacto textarea {
        font-size: 16px;
    }

    .info-contacto {
        font-size: 13px;
    }

    footer {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .footer-redes {
        justify-content: center;
    }

}