/* Estilos de la Página Contacto */
/* Enfoque Mobile First */

/* ===== Estilos Mobile (max-width: 599px) ===== */
@media screen and (max-width: 599px) {
    
    .contacto-seccion {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }

    /* Tarjeta de Información */
    .contacto-info {
        background-color: #ffffff;
        border-radius: 12px;
        padding: 2rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        order: 2;
    }

    .info-titulo {
        color: #d88c29;
        font-size: 1.3rem;
        font-weight: 500;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .info-lista {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .info-elemento {
        display: flex;
        align-items: flex-start;
        gap: 0.8rem;
        font-size: 1rem;
        color: #1f1f1f;
    }

    .info-elemento i {
        color: #d88c29;
        font-size: 1.2rem;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .info-direccion {
        display: flex;
        flex-direction: column;
    }

    /* Mapa dentro de info */
    .info-mapa {
        margin-top: 1.5rem;
        border-radius: 10px;
        overflow: hidden;
    }

    .info-mapa-iframe {
        width: 100%;
        height: 200px;
        border: none;
    }

    /* Formulario */
    .contacto-formulario {
        background-color: #ffffff;
        border-radius: 12px;
        padding: 2rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        order: 1;
        min-height: 600px;
    }

    .formulario-titulo {
        color: #d88c29;
        font-size: 1.8rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

    .formulario-subtitulo {
        color: #666666;
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .formulario {
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
    }

    .formulario-fila {
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
    }

    .formulario-grupo {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
    }

    .formulario-label {
        font-size: 0.9rem;
        font-weight: 500;
        color: #1f1f1f;
    }

    .formulario-input,
    .formulario-select,
    .formulario-textarea {
        width: 100%;
        padding: 0.9rem 1rem;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        font-size: 0.95rem;
        font-family: 'Montserrat', sans-serif;
        background-color: #ffffff;
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }

    .formulario-input:focus,
    .formulario-select:focus,
    .formulario-textarea:focus {
        outline: none;
        border-color: #d88c29;
        box-shadow: 0 0 0 3px rgba(216, 140, 41, 0.15);
    }

    .formulario-input::placeholder,
    .formulario-textarea::placeholder {
        color: #999999;
    }

    .formulario-select {
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        padding-right: 2.5rem;
        cursor: pointer;
    }

    .formulario-grupo-mensaje {
        position: relative;
    }

    .formulario-textarea {
        min-height: 120px;
        resize: vertical;
    }

    .formulario-contador {
        position: absolute;
        bottom: 0.8rem;
        right: 1rem;
        font-size: 0.8rem;
        color: #999999;
    }

    .formulario-acciones {
        display: flex;
        justify-content: flex-end;
        margin-top: 0.5rem;
    }

    .formulario-btn {
        background-color: #d88c29;
        color: #ffffff;
        border: none;
        padding: 1rem 2rem;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        width: 100%;
    }

    .formulario-btn:hover {
        background-color: #c07a20;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(216, 140, 41, 0.3);
    }

    .formulario-btn:active {
        transform: translateY(0) scale(0.98);
        box-shadow: 0 2px 8px rgba(216, 140, 41, 0.2);
    }

    /* Sección de Mapa */
    .mapa-seccion {
        padding: 2rem 1.5rem;
        margin-top: 2rem;
    }

    .mapa-titulo {
        color: #d88c29;
        font-size: 1.5rem;
        font-weight: 600;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .mapa-contenedor {
        width: 100%;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .mapa-iframe {
        width: 100%;
        height: 300px;
        border: none;
    }

    /* Mensaje de Éxito */
    .mensaje-exito {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        padding: 2rem;
        text-align: center;
    }

    .mensaje-icono {
        margin-bottom: 1.5rem;
    }

    .mensaje-icono i {
        font-size: 4rem;
        color: #d88c29;
        animation: scaleIn 0.5s ease-out;
    }

    .mensaje-titulo {
        color: #d88c29;
        font-size: 1.6rem;
        font-weight: 600;
        margin-bottom: 1rem;
    }

    .mensaje-subtitulo {
        color: #666666;
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
        max-width: 400px;
    }

    .mensaje-divisor {
        width: 60px;
        height: 2px;
        background-color: #d88c29;
        margin: 0 auto 1.5rem;
    }

    .mensaje-info {
        color: #999999;
        font-size: 0.9rem;
        font-style: italic;
    }

    /* Estilos de Validación */
    .input-error {
        border-color: #e74c3c !important;
        box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15) !important;
    }

    .formulario-error {
        display: block;
        color: #e74c3c;
        font-size: 0.8rem;
        margin-top: 0.3rem;
        font-weight: 500;
    }

    .formulario-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none !important;
        box-shadow: none !important;
    }

    @keyframes shake {
        0%, 100% { transform: translateX(0); }
        20% { transform: translateX(-6px); }
        40% { transform: translateX(6px); }
        60% { transform: translateX(-4px); }
        80% { transform: translateX(4px); }
    }

    .shake {
        animation: shake 0.4s ease;
    }

    @keyframes scaleIn {
        0% {
            transform: scale(0);
            opacity: 0;
        }
        50% {
            transform: scale(1.1);
        }
        100% {
            transform: scale(1);
            opacity: 1;
        }
    }
}

/* ===== Estilos Tablet (600px - 1023px) ===== */
@media screen and (min-width: 600px) and (max-width: 1023px) {
    
    .contacto-seccion {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 3rem;
    }

    /* Tarjeta de Información */
    .contacto-info {
        background-color: #ffffff;
        border-radius: 20px;
        padding: 2rem 3rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        order: 2;
    }

    .info-titulo {
        color: #d88c29;
        font-size: 1.4rem;
        font-weight: 500;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .info-lista {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .info-elemento {
        display: flex;
        align-items: flex-start;
        gap: 0.8rem;
        font-size: 1rem;
        color: #1f1f1f;
    }

    .info-elemento i {
        color: #d88c29;
        font-size: 1.2rem;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .info-direccion {
        display: flex;
        flex-direction: column;
    }

    /* Mapa dentro de info */
    .info-mapa {
        margin-top: 2rem;
        border-radius: 12px;
        overflow: hidden;
        width: 100%;
    }

    .info-mapa-iframe {
        width: 100%;
        height: 250px;
        border: none;
    }

    /* Formulario */
    .contacto-formulario {
        background-color: #ffffff;
        border-radius: 20px;
        padding: 2.5rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        order: 1;
        min-height: 650px;
    }

    .formulario-titulo {
        color: #d88c29;
        font-size: 2rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

    .formulario-subtitulo {
        color: #666666;
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .formulario {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .formulario-fila {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .formulario-grupo {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .formulario-label {
        font-size: 0.95rem;
        font-weight: 500;
        color: #1f1f1f;
    }

    .formulario-input,
    .formulario-select,
    .formulario-textarea {
        width: 100%;
        padding: 1rem 1.2rem;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        font-size: 1rem;
        font-family: 'Montserrat', sans-serif;
        background-color: #ffffff;
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }

    .formulario-input:focus,
    .formulario-select:focus,
    .formulario-textarea:focus {
        outline: none;
        border-color: #d88c29;
        box-shadow: 0 0 0 3px rgba(216, 140, 41, 0.15);
    }

    .formulario-input::placeholder,
    .formulario-textarea::placeholder {
        color: #999999;
    }

    .formulario-select {
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        padding-right: 2.5rem;
        cursor: pointer;
    }

    .formulario-grupo-mensaje {
        position: relative;
    }

    .formulario-textarea {
        min-height: 140px;
        resize: vertical;
    }

    .formulario-contador {
        position: absolute;
        bottom: 0.8rem;
        right: 1rem;
        font-size: 0.85rem;
        color: #999999;
    }

    .formulario-acciones {
        display: flex;
        justify-content: flex-end;
        margin-top: 0.5rem;
    }

    .formulario-btn {
        background-color: #d88c29;
        color: #ffffff;
        border: none;
        padding: 1rem 2.5rem;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .formulario-btn:hover {
        background-color: #c07a20;
        box-shadow: 0 4px 15px rgba(216, 140, 41, 0.3);
    }

    .formulario-btn:active {
        transform: scale(0.98);
    }

    /* Sección de Mapa */
    .mapa-seccion {
        padding: 2.5rem 3rem;
        margin-top: 2rem;
    }

    .mapa-titulo {
        color: #d88c29;
        font-size: 1.8rem;
        font-weight: 600;
        text-align: center;
        margin-bottom: 2rem;
    }

    .mapa-contenedor {
        width: 100%;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .mapa-iframe {
        width: 100%;
        height: 400px;
        border: none;
    }

    /* Mensaje de Éxito */
    .mensaje-exito {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        padding: 2.5rem;
        text-align: center;
    }

    .mensaje-icono {
        margin-bottom: 1.5rem;
    }

    .mensaje-icono i {
        font-size: 5rem;
        color: #d88c29;
        animation: scaleIn 0.5s ease-out;
    }

    .mensaje-titulo {
        color: #d88c29;
        font-size: 1.8rem;
        font-weight: 600;
        margin-bottom: 1rem;
    }

    .mensaje-subtitulo {
        color: #666666;
        font-size: 1.05rem;
        line-height: 1.6;
        margin-bottom: 2rem;
        max-width: 450px;
    }

    .mensaje-divisor {
        width: 80px;
        height: 2px;
        background-color: #d88c29;
        margin: 0 auto 1.5rem;
    }

    .mensaje-info {
        color: #999999;
        font-size: 0.95rem;
        font-style: italic;
    }

    /* Estilos de Validación */
    .input-error {
        border-color: #e74c3c !important;
        box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15) !important;
    }

    .formulario-error {
        display: block;
        color: #e74c3c;
        font-size: 0.82rem;
        margin-top: 0.3rem;
        font-weight: 500;
    }

    .formulario-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none !important;
        box-shadow: none !important;
    }

    @keyframes shake {
        0%, 100% { transform: translateX(0); }
        20% { transform: translateX(-6px); }
        40% { transform: translateX(6px); }
        60% { transform: translateX(-4px); }
        80% { transform: translateX(4px); }
    }

    .shake {
        animation: shake 0.4s ease;
    }

    @keyframes scaleIn {
        0% {
            transform: scale(0);
            opacity: 0;
        }
        50% {
            transform: scale(1.1);
        }
        100% {
            transform: scale(1);
            opacity: 1;
        }
    }
}

/* ===== Estilos Desktop (min-width: 1024px) ===== */
@media screen and (min-width: 1024px) {
    
    .contacto-seccion {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 3rem;
        max-width: 1200px;
        margin: 3rem auto;
        padding: 2rem;
        align-items: stretch;
        margin-top: 1rem;
    }

    /* Tarjeta de Información */
    .contacto-info {
        background-color: #ffffff;
        border-radius: 20px;
        padding: 2.5rem;
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
        top: 2rem;
    }

    .info-titulo {
        color: #d88c29;
        font-size: 1.5rem;
        font-weight: 500;
        text-align: center;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .info-lista {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
    }

    .info-elemento {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        font-size: 1rem;
        color: #1f1f1f;
        transition: transform 0.3s ease;
    }

    .info-elemento:hover {
        transform: translateX(5px);
    }

    .info-elemento i {
        color: #d88c29;
        font-size: 1.3rem;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .info-direccion {
        display: flex;
        flex-direction: column;
    }

    /* Mapa dentro de info */
    .info-mapa {
        margin-top: 1.5rem;
        border-radius: 12px;
        overflow: hidden;
        width: 100%;
        padding-top: 1rem;
        border-top: 1px solid #f0f0f0;
    }

    .info-mapa-iframe {
        width: 100%;
        height: 250px;
        border: none;
    }

    /* Formulario */
    .contacto-formulario {
        background-color: #ffffff;
        border-radius: 20px;
        padding: 3rem;
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
        min-height: 700px;
    }

    .formulario-titulo {
        color: #d88c29;
        font-size: 2.5rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

    .formulario-subtitulo {
        color: #666666;
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }

    .formulario {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .formulario-fila {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .formulario-grupo {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .formulario-label {
        font-size: 1rem;
        font-weight: 500;
        color: #1f1f1f;
    }

    .formulario-input,
    .formulario-select,
    .formulario-textarea {
        width: 100%;
        padding: 1rem 1.2rem;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        font-size: 1rem;
        font-family: 'Montserrat', sans-serif;
        background-color: #ffffff;
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }

    .formulario-input:focus,
    .formulario-select:focus,
    .formulario-textarea:focus {
        outline: none;
        border-color: #d88c29;
        box-shadow: 0 0 0 3px rgba(216, 140, 41, 0.15);
    }

    .formulario-input::placeholder,
    .formulario-textarea::placeholder {
        color: #999999;
    }

    .formulario-select {
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        padding-right: 2.5rem;
        cursor: pointer;
    }

    .formulario-grupo-mensaje {
        position: relative;
    }

    .formulario-textarea {
        min-height: 150px;
        resize: vertical;
    }

    .formulario-contador {
        position: absolute;
        bottom: 1rem;
        right: 1.2rem;
        font-size: 0.85rem;
        color: #999999;
    }

    .formulario-acciones {
        display: flex;
        justify-content: flex-end;
        margin-top: 1rem;
    }

    .formulario-btn {
        background-color: #d88c29;
        color: #ffffff;
        border: none;
        padding: 1rem 3rem;
        border-radius: 8px;
        font-size: 1.1rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .formulario-btn:hover {
        background-color: #c07a20;
        box-shadow: 0 6px 20px rgba(216, 140, 41, 0.35);
        transform: translateY(-2px);
    }

    .formulario-btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 10px rgba(216, 140, 41, 0.25);
    }

    /* Sección de Mapa */
    .mapa-seccion {
        max-width: 1200px;
        margin: 4rem auto;
        padding: 2rem;
    }

    .mapa-titulo {
        margin-top: -3rem;
        color: #d88c29;
        font-size: 2.2rem;
        font-weight: 600;
        text-align: center;
        margin-bottom: 2.5rem;
    }

    .mapa-contenedor {
        width: 100%;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .mapa-contenedor:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    }

    .mapa-iframe {
        width: 100%;
        height: 450px;
        border: none;
    }

    /* Mensaje de Éxito */
    .mensaje-exito {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        padding: 3rem;
        text-align: center;
    }

    .mensaje-icono {
        margin-bottom: 2rem;
    }

    .mensaje-icono i {
        font-size: 5.5rem;
        color: #d88c29;
        animation: scaleIn 0.5s ease-out;
    }

    .mensaje-titulo {
        color: #d88c29;
        font-size: 2.2rem;
        font-weight: 600;
        margin-bottom: 1.2rem;
    }

    .mensaje-subtitulo {
        color: #666666;
        font-size: 1.15rem;
        line-height: 1.7;
        margin-bottom: 2.5rem;
        max-width: 500px;
    }

    .mensaje-divisor {
        width: 100px;
        height: 3px;
        background-color: #d88c29;
        margin: 0 auto 2rem;
        border-radius: 2px;
    }

    .mensaje-info {
        color: #999999;
        font-size: 1rem;
        font-style: italic;
    }

    /* Estilos de Validación */
    .input-error {
        border-color: #e74c3c !important;
        box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15) !important;
    }

    .formulario-error {
        display: block;
        color: #e74c3c;
        font-size: 0.85rem;
        margin-top: 0.3rem;
        font-weight: 500;
    }

    .formulario-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none !important;
        box-shadow: none !important;
    }

    @keyframes shake {
        0%, 100% { transform: translateX(0); }
        20% { transform: translateX(-6px); }
        40% { transform: translateX(6px); }
        60% { transform: translateX(-4px); }
        80% { transform: translateX(4px); }
    }

    .shake {
        animation: shake 0.4s ease;
    }

    @keyframes scaleIn {
        0% {
            transform: scale(0);
            opacity: 0;
        }
        50% {
            transform: scale(1.1);
        }
        100% {
            transform: scale(1);
            opacity: 1;
        }
    }
}
