/* ===================== FOOTER ===================== */
*,
::before,
::after {
    margin: 0;
    box-sizing: border-box;
}

body,
input,
textarea,
button {
    font-family: 'museo-sans', sans-serif !important;
}

/** Foooter **/

.footer {
    width: 100%;
    background-color: none;
    border-radius: 200px 0 0 0;
}

.footer__content {
    padding: 80px 0;
    width: min(90%, 1200px);
    margin: 0 auto;
    overflow: hidden;      /* recorta el círculo si se sale */
    border-radius: 30px 30px 0 0;
    position: relative;   /* contexto de posicionamiento para el círculo */
}

.footer__copy {
    justify-self: center;
    background-color: #B9FF66;
    color: #1B3554;
    font-weight: 500;
    padding: 4px;
    border-radius: 6px;
}
.footer__main{
    background: linear-gradient(135deg, #746add 0%, #5041cc 100%);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
    position: relative;   /* sube sobre el círculo */
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.footer__background_circle,
.background_circle {
    width: 500px;
    height: 500px;
    position: absolute;
    bottom: 0;
    left: 0;
    border-radius: 50%;
    z-index: 0;            /* sobre el fondo del padre pero bajo los hermanos con z-index:1 */
    background: linear-gradient(135deg, #978df9 0%, #6d5ee8 100%);
    pointer-events: none;
    translate: -30% 30%;
}
/* ===================== FORMULARIO DE CONTACTO ===================== */

.contact-form {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    /* Fondo claro como el header */
    background: #ffffff;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 160, 70, 0.2);
    transition: all 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    /* Bordes sutiles en gris oscuro u naranja muy claro */
    border: 1px solid rgba(255, 160, 70, 0.3);
    border-radius: 8px;
    background-color: rgba(255, 160, 70, 0.03);
    color: #333333 !important;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(85, 85, 85, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border: 1px solid #ffa046;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 160, 70, 0.2);
    color: #333333 !important;
}

.form-group input:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown) {
    color: #333333 !important;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Estilos para labels del formulario */
.form-group label {
    color: #555555;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    text-transform: capitalize;
    transition: all 0.3s ease;
}

/* Estilos para el acordeón de asunto */
.asunto-accordion {
    position: relative;
}

.accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 160, 70, 0.3);
    border-radius: 8px;
    background-color: rgba(255, 160, 70, 0.03);
    cursor: pointer;
    transition: all 0.3s ease;
    color: #555555;
    font-size: 1rem;
    font-family: "Space Grotesk", sans-serif;
    user-select: none;
}

.accordion-trigger:hover {
    border: 1px solid rgba(255, 160, 70, 0.6);
    background-color: rgba(255, 160, 70, 0.06);
}

.accordion-trigger label {
    color: #555555;
    margin-bottom: 0;
    cursor: pointer;
}

.accordion-arrow {
    color: #555555;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.asunto-accordion.active .accordion-arrow {
    transform: rotate(180deg);
    color: #ffa046;
}

.asunto-accordion.active .accordion-trigger {
    border: 1px solid #ffa046;
    background-color: #ffffff;
    color: #333333;
}

.asunto-accordion.active .accordion-trigger label {
    color: #333333;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    margin-top: 0;
    opacity: 0;
}

.asunto-accordion.active .accordion-content {
    max-height: 80px;
    margin-top: 0.5rem;
    opacity: 1;
}



/* Estilos para el select dropdown */
.select {
    width: fit-content;
    cursor: pointer;
    position: relative;
    transition: 300ms;
    color: #333333;
    overflow: visible;
    margin: 0 auto;
}

.selected {
    background-color: rgba(255, 160, 70, 0.03);
    padding: 15px 20px;
    margin-bottom: 3px;
    border-radius: 8px;
    position: relative;
    z-index: 100001;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255, 160, 70, 0.3);
    min-width: 250px;
    font-family: "Space Grotesk", sans-serif;
}

.selected::before {
    content: var(--selected-text, attr(data-default));
    color: #555555 !important;
    font-style: normal;
}

.arrow {
    position: relative;
    right: 0px;
    height: 12px;
    transform: rotate(-90deg);
    width: 25px;
    fill: #555555;
    z-index: 100000;
    transition: 300ms;
}

.options {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    padding: 5px;
    background-color: #ffffff;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    opacity: 0;
    transition: 300ms;
    border: 1px solid rgba(255, 160, 70, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    z-index: 1000;
    transform: translateY(-10px);
    pointer-events: none;
}

.select:hover > .options {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.select:hover > .selected .arrow {
    transform: rotate(0deg);
}

.option {
    border-radius: 5px;
    padding: 12px 15px;
    transition: 300ms;
    background-color: transparent;
    width: 250px;
    font-size: 15px;
    font-family: "Space Grotesk", sans-serif;
    color: #555555;
}

.option:hover {
    background-color: rgba(255, 160, 70, 0.1);
    color: #ffa046;
}

.options input[type="radio"] {
    display: none;
}

.options label {
    display: inline-block;
    cursor: pointer;
}

.options label::before {
    content: attr(data-txt);
}

.options input[type="radio"]:checked + label {
    display: none;
}

.options input[type="radio"]#default:checked + label {
    display: none;
}



.select:has(.options input[type="radio"]#default-asunto:checked) .selected::before {
    content: "Selecciona un asunto";
}

.select:has(.options input[type="radio"]#salas:checked) .selected::before {
    content: attr(data-salas);
}

.select:has(.options input[type="radio"]#conectividad:checked) .selected::before {
    content: attr(data-conectividad);
}

.select:has(.options input[type="radio"]#carro:checked) .selected::before {
    content: attr(data-carro);
}

.select:has(.options input[type="radio"]#magic:checked) .selected::before {
    content: attr(data-magic);
}

.select:has(.options input[type="radio"]#edutick:checked) .selected::before {
    content: attr(data-edutick);
}

.select:has(.options input[type="radio"]#eda:checked) .selected::before {
    content: attr(data-eda);
}

.select:has(.options input[type="radio"]#dcl:checked) .selected::before {
    content: attr(data-dcl);
}

/* Estilos específicos para el select en el formulario de contacto */
.contact-form .select {
    width: 100%;
    margin: 0;
    position: relative;
}

.contact-form .selected {
    background-color: rgba(255, 160, 70, 0.03);
    border: 1px solid rgba(255, 160, 70, 0.3);
    min-width: auto;
    width: 100%;
    box-sizing: border-box;
}

.contact-form .options {
    width: 100%;
    box-sizing: border-box;
    z-index: 10000;
}

.contact-form .option {
    width: 100%;
    box-sizing: border-box;
}

/* Estilos para los IDs específicos del formulario */
.select:has(.options input[type="radio"]#default-asunto:checked) .selected::before {
    content: "Selecciona un asunto";
    color: rgba(85, 85, 85, 0.6) !important;
}

.select:has(.options input[type="radio"]#salas-asunto:checked) .selected::before {
    content: attr(data-salas);
}

.select:has(.options input[type="radio"]#conectividad-asunto:checked) .selected::before {
    content: attr(data-conectividad);
}

.select:has(.options input[type="radio"]#carro-asunto:checked) .selected::before {
    content: attr(data-carro);
}

.select:has(.options input[type="radio"]#magic-asunto:checked) .selected::before {
    content: attr(data-magic);
}

.select:has(.options input[type="radio"]#edutick-asunto:checked) .selected::before {
    content: attr(data-edutick);
}

.select:has(.options input[type="radio"]#eda-asunto:checked) .selected::before {
    content: attr(data-eda);
}

.select:has(.options input[type="radio"]#dcl-asunto:checked) .selected::before {
    content: attr(data-dcl);
}

.select:has(.options input[type="radio"]#muro-asunto:checked) .selected::before {
    content: attr(data-muro);
}

/* From Uiverse.io by adamgiebl - Adaptado para .submit-btn */
.submit-btn {
    font-family: inherit;
    font-size: 20px;
    background: #ffa046; /* Naranja en lugar de azul royalblue */
    color: white;
    padding: 0.7em 1em;
    padding-left: 0.9em;
    display: flex;
    align-items: center;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 1rem;
    width: fit-content;
}

.submit-btn span {
    display: block;
    margin-left: 0.3em;
    transition: all 0.3s ease-in-out;
}

.submit-btn svg {
    display: block;
    transform-origin: center center;
    transition: all 0.3s ease-in-out; /* Transición más suave para iconos */
}

/* Transiciones suaves para cambios de estado */
.submit-btn,
.submit-btn * {
    transition: all 0.3s ease-in-out;
}

/* Animaciones de entrada para iconos */
.submit-btn .icon-loading,
.submit-btn .icon-success,
.submit-btn .icon-error {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease-in-out;
}

/* Mostrar iconos con animación */
.submit-btn.loading .icon-loading,
.submit-btn.success .icon-success,
.submit-btn.error .icon-error {
    opacity: 1;
    transform: scale(1);
}

/* Ocultar iconos con animación */
.submit-btn:not(.loading) .icon-loading,
.submit-btn:not(.success) .icon-success,
.submit-btn:not(.error) .icon-error {
    opacity: 0;
    transform: scale(0.8);
}

/* Animación de escala para el botón al cambiar estados */
.submit-btn.loading,
.submit-btn.success,
.submit-btn.error {
    transform: scale(0.98);
    transition: all 0.3s ease-in-out;
}

/* Efecto de pulso para estados de feedback */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.submit-btn.success {
    animation: pulse 0.6s ease-in-out;
}

.submit-btn.error {
    animation: pulse 0.6s ease-in-out;
}

/* Restaurar animaciones de hover mejoradas */
.submit-btn:hover .svg-wrapper {
    animation: fly-1 0.6s ease-in-out infinite alternate;
}

.submit-btn:hover svg {
    transform: translateX(1.2em) rotate(45deg) scale(1.1);
}

.submit-btn:hover span {
    transform: translateX(5em);
}

.submit-btn:active {
    transform: scale(0.95);
}

/* Desactivar hover en estados especiales */
.submit-btn.loading:hover,
.submit-btn.success:hover,
.submit-btn.error:hover,
.submit-btn.disabled:hover {
    transform: scale(0.98);
}

.submit-btn.loading:hover .svg-wrapper,
.submit-btn.success:hover .svg-wrapper,
.submit-btn.error:hover .svg-wrapper,
.submit-btn.disabled:hover .svg-wrapper {
    animation: none;
}

.submit-btn.loading:hover svg,
.submit-btn.success:hover svg,
.submit-btn.error:hover svg,
.submit-btn.disabled:hover svg {
    transform: none;
}

.submit-btn.loading:hover span,
.submit-btn.success:hover span,
.submit-btn.error:hover span,
.submit-btn.disabled:hover span {
    transform: none;
}

/* Estado Loading */
.submit-btn.loading {
    background: #6c757d; /* Gris para indicar estado de carga */
    cursor: not-allowed;
    pointer-events: none;
}

/* Ocultar icono del avión y mostrar icono de loading */
.submit-btn.loading .icon-plane {
    display: none !important;
}

.submit-btn.loading .icon-loading {
    display: block !important;
}

.submit-btn.loading .svg-wrapper svg {
    transform: none !important; /* Desactivar transformaciones de hover */
}

.submit-btn.loading span {
    transform: none !important; /* Desactivar desplazamiento de texto */
}

.submit-btn.loading:hover span {
    transform: none !important; /* Desactivar desplazamiento de texto */
}

/* Estado Success */
.submit-btn.success {
    background: #28a745; /* Verde para indicar éxito */
    cursor: not-allowed;
    pointer-events: none;
}

/* Ocultar otros iconos y mostrar icono de success */
.submit-btn.success .icon-plane,
.submit-btn.success .icon-loading {
    display: none !important;
}

.submit-btn.success .icon-success {
    display: block !important;
}

.submit-btn.success .svg-wrapper svg {
    transform: none !important; /* Desactivar transformaciones de hover */
}

.submit-btn.success span {
    transform: none !important; /* Desactivar desplazamiento de texto */
}

.submit-btn.success:hover .svg-wrapper {
    animation: none !important; /* Desactivar animación de vuelo */
}

.submit-btn.success:hover svg {
    transform: none !important; /* Desactivar transformaciones de hover */
}

.submit-btn.success:hover span {
    transform: none !important; /* Desactivar desplazamiento de texto */
}

/* Estado Error */
.submit-btn.error {
    background: #dc3545; /* Rojo para indicar error */
    cursor: not-allowed;
    pointer-events: none;
}

/* Ocultar otros iconos y mostrar icono de error */
.submit-btn.error .icon-plane,
.submit-btn.error .icon-loading,
.submit-btn.error .icon-success {
    display: none !important;
}

.submit-btn.error .icon-error {
    display: block !important;
}

.submit-btn.error .svg-wrapper svg {
    transform: none !important; /* Desactivar transformaciones de hover */
}

.submit-btn.error span {
    transform: none !important; /* Desactivar desplazamiento de texto */
}

.submit-btn.error:hover .svg-wrapper {
    animation: none !important; /* Desactivar animación de vuelo */
}

.submit-btn.error:hover svg {
    transform: none !important; /* Desactivar transformaciones de hover */
}

.submit-btn.error:hover span {
    transform: none !important; /* Desactivar desplazamiento de texto */
}

/* Estado Disabled */
.submit-btn.disabled {
    background: #6c757d; /* Gris para indicar deshabilitado */
    color: rgba(255, 255, 255, 0.6); /* Texto más tenue */
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.7; /* Hacer el botón más tenue */
}

.submit-btn.disabled .icon-loading,
.submit-btn.disabled .icon-success,
.submit-btn.disabled .icon-error {
    display: none !important;
}

.submit-btn.disabled .icon-plane {
    display: block !important;
    opacity: 0.6; /* Icono más tenue */
}

.submit-btn.disabled:hover {
    transform: scale(0.98);
}

.submit-btn.disabled:hover .svg-wrapper {
    animation: none;
}

.submit-btn.disabled:hover svg {
    transform: none;
}

.submit-btn.disabled:hover span {
    transform: none;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    border-left: 4px solid;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.toast.error {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

.toast.info {
    border-left-color: #17a2b8;
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
}

.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.toast-message {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #666;
}

/* ===== MENSAJES CONTEXTUALES ===== */
.context-messages {
    position: relative;
    margin-top: 15px;
}

.message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
    margin-bottom: 8px;
}

.message.show {
    opacity: 1;
    transform: translateY(0);
}

.success-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message-icon {
    flex-shrink: 0;
}

.message-text {
    flex: 1;
}

/* Animaciones para mensajes */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutToTop {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.message.slide-in {
    animation: slideInFromTop 0.3s ease-out;
}

.message.slide-out {
    animation: slideOutToTop 0.3s ease-in;
}

@keyframes fly-1 {
    from {
        transform: translateY(0.1em);
    }

    to {
        transform: translateY(-0.1em);
    }
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.footer__link {
    color: white;
    text-decoration: none;
}

.footer__link:hover {
    text-decoration: underline;
}

/* ===================== ESTRUCTURA DEL FOOTER ===================== */

.footer__main {
    display: grid;
    gap: 2rem;
    justify-items: center;
}

/* ===================== SECCIÓN DE MARCA ===================== */

.footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    max-width: 300px;
}

.footer__logo {
    width: 140px;
    height: auto;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1); /* Hace el logo blanco */
}

.footer__logo:hover {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(117, 151, 254, 0.3));
}

.footer__description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ===================== SECCIÓN DE NAVEGACIÓN ===================== */

.footer__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer__section-title {
    color: #ffc529;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer__links-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.footer__link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
    position: relative;
}

.footer__link:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.footer__link:hover::after {
    width: 100%;
}

/* ===================== SECCIÓN DE CONTACTO ===================== */

.footer__contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 280px;
}

.footer__contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-icon {
    color: #ffffff;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.contact-item span {
    flex: 1;
}

/* ===================== SECCIÓN DE REDES SOCIALES ===================== */

.footer__social-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer__social {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

/* ===================== SECCIÓN DEL FORMULARIO ===================== */

.footer__form-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 500px;
    position: relative;  /* sube sobre el círculo */
    z-index: 1;
}

.footer__copyright {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
}

.footer__copyright-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.footer__social {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

/* ===================== RESPONSIVE DESIGN ===================== */

/* Tablets (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .footer__main {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "brand links"
            "contact social"
            "form form";
        gap: 2.5rem;
        align-items: start;
    }

    .footer__brand {
        grid-area: brand;
        align-items: flex-start;
        text-align: left;
    }

    .footer__links {
        grid-area: links;
        align-items: flex-start;
    }

    .footer__contact {
        grid-area: contact;
        align-items: flex-start;
        text-align: left;
    }

    .footer__social-section {
        grid-area: social;
        align-items: flex-start;
    }

    .footer__form-section {
        grid-area: form;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    .footer__links-grid {
        align-items: flex-start;
    }

    .footer__contact-info {
        align-items: flex-start;
    }
}

/* Desktop (1024px y superior) */
@media (min-width: 1024px) {
    .footer__content {
        border-radius: 30px 30px 0 0;
    }

    .footer__main {
        width: 90%;
        margin: 0 auto;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-template-areas:
            "brand links contact social"
            "form form form form";
        gap: 3rem;
        justify-items: start;
        align-items: start;

    }

    .footer__brand {
        grid-area: brand;
        align-items: flex-start;
        text-align: left;
        max-width: 250px;
    }

    .footer__links {
        grid-area: links;
        align-items: flex-start;
    }

    .footer__contact {
        grid-area: contact;
        align-items: flex-start;
        text-align: left;
        max-width: 250px;
    }

    .footer__social-section {
        grid-area: social;
        align-items: flex-start;
    }

    .footer__form-section {
        grid-area: form;
        width: 100%;
        max-width: 800px;
        margin: 2rem auto 0;
    }

    .footer__links-grid {
        align-items: flex-start;
    }

    .footer__contact-info {
        align-items: flex-start;
    }

    .footer__social {
        justify-content: flex-start;
    }

    .contact-form {
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
    }
}

/* Pantallas muy grandes (1400px y superior) */
@media (min-width: 1400px) {
    .footer__content {
        max-width: 1400px;
    }

    .footer__main {
        gap: 4rem;
    }

    .footer__form-section {
        max-width: 900px;
    }
}

/* ===================== BOTONES DE REDES SOCIALES ===================== */

/* Estilos base para todos los botones sociales */
.button_insta,
.button_whatsapp,
.button_twitter,
.button_youtube {
  cursor: pointer;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: all 0.3s ease;
  overflow: hidden;
}

.button_insta:hover,
.button_whatsapp:hover,
.button_twitter:hover,
.button_youtube:hover {
  transform: translateY(-3px);
  border-color: #7597FE;
  box-shadow: 0 5px 15px rgba(117, 151, 254, 0.3);
}

.button_insta svg,
.button_whatsapp svg,
.button_twitter svg,
.button_youtube svg {
  color: rgba(255, 255, 255, 0.8);
  width: 20px;
  height: 20px;
  z-index: 9;
  transition: all 0.3s ease;
}

/* Efectos hover para cada red social */
.button_insta:hover svg {
  color: #e4405f;
}

.button_whatsapp:hover svg {
  color: #25d366;
}

.button_twitter:hover svg {
  color: #1da1f2;
}

.button_youtube:hover svg {
  color: #ff0000;
}

/* Efectos de brillo para cada botón */
.button_insta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(228, 64, 95, 0.2), transparent);
  transition: left 0.5s ease;
}

.button_whatsapp::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37, 211, 102, 0.2), transparent);
  transition: left 0.5s ease;
}

.button_twitter::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(29, 161, 242, 0.2), transparent);
  transition: left 0.5s ease;
}

.button_youtube::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.2), transparent);
  transition: left 0.5s ease;
}

.button_insta:hover::before,
.button_whatsapp:hover::before,
.button_twitter:hover::before,
.button_youtube:hover::before {
  left: 100%;
}

.button_insta:active,
.button_whatsapp:active,
.button_twitter:active,
.button_youtube:active {
  transform: scale(0.95);
}

.button_insta:disabled,
.button_whatsapp:disabled,
.button_twitter:disabled,
.button_youtube:disabled {
  filter: grayscale(1);
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Ocultar la opción por defecto del menú desplegable */
.options div[title="default"] {
    display: none;
}

/* Mostrar el placeholder text por defecto */
.select:has(.options input[type="radio"]#default-asunto:checked) .selected::before {
    content: "Selecciona un asunto";
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* Estilos para cuando se selecciona una opción */
.select:has(.options input[type="radio"]:not(#default-asunto):checked) .selected::before {
    color: white;
    font-style: normal;
}

/* ===== ANIMACIONES DE ENTRADA DEL FOOTER ===== */
.footer__main > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.footer__main > *.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Retraso escalonado para cada sección */
.footer__brand {
    transition-delay: 0.1s;
}

.footer__links {
    transition-delay: 0.2s;
}

.footer__contact {
    transition-delay: 0.3s;
}

.footer__social-section {
    transition-delay: 0.4s;
}

.footer__form-section {
    transition-delay: 0.5s;
}

/* Animación para elementos internos */
.footer__contact-info .contact-item,
.footer__links-grid .footer__link,
.footer__social button {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease-out;
}

.footer__contact-info.animate-in .contact-item,
.footer__links-grid.animate-in .footer__link,
.footer__social.animate-in button {
    opacity: 1;
    transform: translateX(0);
}

/* Retraso escalonado para elementos internos */
.footer__contact-info .contact-item:nth-child(1) { transition-delay: 0.1s; }
.footer__contact-info .contact-item:nth-child(2) { transition-delay: 0.2s; }
.footer__contact-info .contact-item:nth-child(3) { transition-delay: 0.3s; }
.footer__contact-info .contact-item:nth-child(4) { transition-delay: 0.4s; }

.footer__links-grid .footer__link:nth-child(1) { transition-delay: 0.1s; }
.footer__links-grid .footer__link:nth-child(2) { transition-delay: 0.2s; }
.footer__links-grid .footer__link:nth-child(3) { transition-delay: 0.3s; }
.footer__links-grid .footer__link:nth-child(4) { transition-delay: 0.4s; }

.footer__social button:nth-child(1) { transition-delay: 0.1s; }
.footer__social button:nth-child(2) { transition-delay: 0.2s; }
.footer__social button:nth-child(3) { transition-delay: 0.3s; }
.footer__social button:nth-child(4) { transition-delay: 0.4s; }
