/* contacto.css - contenedor */
.contenido-principal.contacto-section {
max-width: 1200px;
margin: 30px auto;
padding: 22px;

background: #e2e5f3;
border-radius: 8px;
}

/* grid: mapa | panel */
.grid-contact {
display: grid;
grid-template-columns: 1fr 1fr; /* mitad y mitad */
gap: 50px;
align-items: start;
}

/* mapa */
.mapa {
width: 100%;
border-radius: 8px;
overflow: hidden;
/*box-shadow: 0 4px 10px rgba(0,0,0,0.04);*/
}
.mapa iframe {
width: 90%;
height: 420px;
border-radius: 8px; /*esquinas bordeadas*/
}

/* panel de contacto (derecha) */
.contacto-panel h2 { color: #1c3d7a; margin-top: 0; }
.contact-info { font-size: 0.95rem; color: #444; margin-bottom: 12px; }

.contact-form label { display:block; margin:10px 0 6px; font-weight:600; color:#333; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
width:100%;
padding:10px 12px;
border:1px solid #fffefe;
border-radius:6px;
box-sizing:border-box;
font-size:0.95rem;
}

.form-actions { margin-top:12px; text-align:right; }
.btn-primary {
background:#4e58e6; color:#fff; border:none; padding:10px 16px; border-radius:6px;
cursor:pointer;
}
.btn-primary:hover { opacity:0.95; }

/* mensajes del servidor */
.msg-server { margin-top:10px; color: green; font-weight:600; }

/* responsive */
@media (max-width: 960px) {
.grid-contact { grid-template-columns: 1fr; }
.mapa iframe { height: 360px; }
.contacto-panel { order: 2; }
}

@keyframes fadeIn {
    from {
    opacity: 0;
    transform: translateY(10px);
}
    to {
    opacity: 1;
    transform: translateY(0);
}
}
/* Iframe Responsive */
.responsive-iframe {
    position: relative;
    padding-bottom: 125%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 12px;
}

.responsive-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive general */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    header h1 {
        font-size: 1.8em;
    }

    #formulario-contacto {
        padding: 15px;
    }

    iframe {
        max-width: 100%;
        height: auto;
    }

    footer {
        font-size: 0.9em;
    }
}
/* Versión simplificada responsive del iframe */
@media (max-width: 768px) {
    iframe {
        height: 2000px;
    }

    #formulario-contacto {
        padding: 10px;
        margin: 10px;
    }

    header h1 {
        font-size: 1.6em;
    }

    header p {
        font-size: 1em;
    }

    footer {
        font-size: 0.8em;
    }
}
