#page-local-isocial-contact #page,
#page-local-isocial-contact #page-content,
#page-local-isocial-contact .main-inner,
#page-local-isocial-contact .container,
#page-local-isocial-contact .card,
#page-local-isocial-contact .block,
#page-local-isocial-contact .header-maxwidth {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}
#page-footer{
    margin-right: 0 !important;
}
/* ELIMINAR ESPACIO DEL HEADER */
#page-local-isocial-contact #page-wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

#page-local-isocial-contact #page {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

#page-local-isocial-contact #page-header {
    display: none !important;
}

#page-local-isocial-contact .moodle-header {
    display: none !important;
}

#page-local-isocial-contact .card-body {
    padding: 0 !important;
    margin: 0 !important;
}
/* banner */
.banner-contact {
    background: var(
        --local-isocial-banner-background-contact,
        var(--local-isocial-banner-background-default, linear-gradient(120deg, #5e9bff, #446bc2))
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
    position: relative;
    margin-top: 0;    
    align-content:center;
    min-height: 500px;

}

.banner-contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.08);
}

.banner-contact h1 {
    margin: 0 0 22px 0;
    font-size: clamp(2rem, 3vw, 3rem);
    color: #fff;
    text-align: center;
    font-size: 44px !important;
}

.banner-contact p {
    margin: 0 auto 20px;
    font-size: 18px !important;
    text-align: center;
    max-width: 640px;
    color: rgba(255, 255, 255, 0.9);
}
.badge-etiqueta {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1%;   
    background: rgb(255 255 255 / 22%);
    padding: 2px 4px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    width: 20%;
    text-align: center;
}
/* Formulario y e informacion de contacto */
.contact-espacio{
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
}
.contact-container {
    max-width: 100%;
    margin: 0 auto;
    margin-top: -1px;
    background-color: #fff;
    padding-bottom: 5%;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
    margin-top: 5%;
}

.contact-header h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 15px;
}

.contact-header .lead {
    color: #000;
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

/* Estilos para el formulario - Diseño como la imagen */
.contact-form-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(240, 179, 35, 1);
}

.contact-form-section h2{
   font-size: 24px;
   font-weight: 500;
   color: #000;
}
.contact-form-section p {
   font-size: 14px;
   font-weight: 400;
   color: #000;
}
.contact-form-section h2, p {
   text-align: left;
}

.contact-form {
    width: 100%;
}
.contact-form .form-row{
    display: flex;
    gap: 0px;
    margin-bottom: 0px;
    flex-direction: column;
    flex-wrap: nowrap;
}

.form-group{
    padding: 0 !important;
}
.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #000;
    font-size: 14px;
}

.form-group label strong {
    font-weight: bold;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 2px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background-color: rgba(217, 217, 217, 0.5);
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group input::placeholder {
    color: #95a5a6;
    font-style: italic;
}

.submit-btn {
    background: #4B97FB;
    color: white;
    padding: 5px 18px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

/* Estilos para la información de contacto */
.contact-info-section {
    background: white;
    color: #2c3e50;
    padding: 40px 40px 0px 40px;
    border-radius: 28px;
    height: 100%;
}

.contact-info h2 {
    font-size:24px;
    font-weight: 500;
    text-align: left;
    color: #000;
    padding-bottom: 15px;
}

.contact-info p {
    font-size:16px;
    font-weight: 700;
    text-align: left;
    color: #000;
    padding-bottom: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    border-radius: 28px;
}

.contact-icon {
    font-size: 1.5em;
    color: #3498db;
    margin-right: 15px;
    flex-shrink: 0;
    margin-top: 2px;
    margin-left: 8px;
}

.contact-details strong {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
}

.contact-details p {
    text-align: left;
    margin: 0;
    line-height: 1.5;
    color: #555;
}

/* Estilos para el checkbox de tratamiento de datos */
.checkbox-group {
    margin: 25px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95em;
    color: #2c3e50;
    line-height: 1.4;
}

.custom-checkbox {
    width: 5% !important;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #3498db;
    flex-shrink: 0;
}

/* Estilos para la descripción del mapa */
.map-description {
    margin-bottom: 20px;
    padding: 40px;
    background: white;
    border-radius: 28px;
    text-align: center;
}

.map-description p {
    color: #555;
    margin: 0;
    line-height: 1.6;
    font-size: 1em;
}

.location-content{
    margin-top: 5%;
}
.map-actions{
    text-align: center;
}

/* Estilos para el contenedor del mapa */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 2%;
}

.map-container iframe {
    border-radius: 8px;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .contact-espacio {
        max-width: 90%;
    }
    
    .banner-contact {
        min-height: 450px;
        padding: 60px 20px;
    }
}

@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .banner-contact h1 {
        font-size: 36px !important;
    }
    
    .banner-contact p {
        font-size: 16px !important;
        max-width: 500px;
    }
    
    .badge-etiqueta {
        width: 25%;
    }
}

@media (max-width: 768px) {
    .banner-contact {
        min-height: 400px;
        padding: 50px 20px;
        margin-bottom: 30px;
    }
    
    .banner-contact h1 {
        font-size: 32px !important;
        margin-bottom: 15px;
    }
    
    .banner-contact p {
        font-size: 15px !important;
        max-width: 450px;
        margin-bottom: 15px;
    }
    
    .contact-espacio {
        max-width: 95%;
    }
    
    .contact-form-section,
    .contact-info-section {
        padding: 30px;
        border-radius: 16px;
    }
    
    .contact-form-section h2,
    .contact-info h2 {
        font-size: 20px;
    }
    
    .form-row {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .badge-etiqueta {
        width: 60%;
        font-size: 12px;
        padding: 4px 8px;
        margin-bottom: 15px;
    }
    
    .img-contact {
        margin-top: 25px;
    }
}


/* Estilos para alinear imagen con formulario */
.contact-info-section .contact-info {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 580px; /* Ajusta según la altura de tu formulario */
}

.contact-icons-container {
    flex: 0 0 auto;
    margin-bottom: 20px;
}

.image-container {
    flex: 1 1 auto;
    display: flex;
    align-items: flex-end;
    min-height: 300px; /* Altura mínima para la imagen */
    margin-top: auto;
}

.img-contact {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    margin-top: 0;
}

/* Para pantallas grandes */
@media (min-width: 993px) {
    .contact-info-section {
        display: flex;
        flex-direction: column;
    }
    
    .contact-info-section .contact-info {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .contact-content {
        align-items: stretch; /* Hace que ambas columnas tengan la misma altura */
    }
    
    .contact-form-section,
    .contact-info-section {
        height: auto;
        min-height: 650px; /* Altura similar para ambas columnas */
    }
}

/* Ajustes responsive */
@media (max-width: 992px) {
    .contact-info-section .contact-info {
        min-height: auto;
    }
    
    .contact-form-section,
    .contact-info-section {
        min-height: auto;
    }
    
    .image-container {
        min-height: 250px;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .image-container {
        min-height: 200px;
    }
    
    .contact-icons-container {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .banner-contact {
        min-height: 350px;
        padding: 40px 15px;
        margin-bottom: 25px;
    }
    
    .banner-contact h1 {
        font-size: 28px !important;
        margin-bottom: 12px;
    }
    
    .banner-contact p {
        font-size: 14px !important;
        max-width: 400px;
        line-height: 1.4;
    }
    
    .contact-espacio {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .contact-form-section,
    .contact-info-section {
        padding: 25px 20px;
        border-radius: 12px;
    }
    
    .contact-form-section h2,
    .contact-info h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .contact-info p {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .badge-etiqueta {
        width: 45%;
        font-size: 11px;
        margin-bottom: 12px;
    }
    
    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 14px;
    }
    
    .form-group textarea {
        rows: 4;
        min-height: 100px;
    }
    
    .checkbox-label {
        font-size: 12px;
        line-height: 1.3;
    }
    
    .custom-checkbox {
        width: 18px !important;
        height: 18px;
        margin-right: 8px;
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 15px;
        border-radius: 8px;
    }
    
    .contact-item {
        margin-bottom: 20px;
        align-items: center;
    }
    
    .contact-icon {
        font-size: 1.2em;
        margin-right: 12px;
        margin-top: 0;
        margin-left: 0;
    }
    
    .contact-details p {
        font-size: 13px;
    }
    
    .img-contact {
        margin-top: 20px;
        border-radius: 6px;
    }
}

@media (max-width: 400px) {
    .banner-contact {
        min-height: 300px;
        padding: 30px 10px;
    }
    
    .banner-contact h1 {
        font-size: 24px !important;
    }
    
    .banner-contact p {
        font-size: 13px !important;
        max-width: 320px;
    }
    
    .badge-etiqueta {
        width: 60%;
        font-size: 12px;
        padding: 3px 6px;
    }
    
    .contact-form-section,
    .contact-info-section {
        padding: 20px 15px;
    }
    
    .contact-form-section h2 {
        font-size: 16px;
    }
    
    .contact-form-section p {
        font-size: 12px;
    }
    
    .submit-btn {
        font-size: 14px;
        padding: 10px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 8px;
        font-size: 13px;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .banner-contact {
        min-height: 300px;
        padding: 30px 20px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-espacio {
        max-width: 90%;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .contact-content {
        gap: 35px;
    }
    
    .form-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .form-row .form-group:nth-child(3) {
        grid-column: span 2;
    }
}

@media (max-width: 375px) {
    .banner-contact h1 {
        font-size: 22px !important;
    }
    
    .banner-contact p {
        font-size: 12px !important;
    }
    
    .checkbox-label {
        font-size: 11px;
    }
    
    .contact-item {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .contact-icon {
        margin-top: 2px;
    }
}