/* Estilos de contacto.html (antes en un bloque <style> de la página; fuera para la CSP sin 'unsafe-inline') */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-fresh: #4ABDAC;
    --color-coral: #FC4A1A;
    --color-negro: #000000;
    --color-blanco: #FFFFFF;
}

body {
    font-family: 'Aptos', 'Segoe UI', Arial, sans-serif;
    background: var(--color-negro);
    color: var(--color-blanco);
    min-height: 100vh;
    overflow-x: hidden;
}

/* HEADER */
header {
    background: var(--color-blanco);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 60px;
    width: auto;
}

nav a {
    color: var(--color-negro);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s;
}

nav a:hover {
    background: var(--color-coral);
    color: var(--color-blanco);
}

/* SECCIÓN PRINCIPAL */
.contacto-hero {
    background: var(--color-coral);
    padding: 4rem 2rem 2rem;
    text-align: center;
}

.contacto-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInDown 0.6s ease-out;
}

.contacto-hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    animation: fadeInUp 0.8s ease-out;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CONTENEDOR PRINCIPAL */
.main-container {
    max-width: 1400px;
    margin: -3rem auto 0;
    padding: 0 2rem 4rem;
    position: relative;
    z-index: 10;
}

.formulario-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    background: var(--color-blanco);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(252, 74, 26, 0.3);
}

/* COLUMNA IZQUIERDA - IMAGEN E INFO */
.info-column {
    background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(0,0,0,0.6)), url('../images/evento_conjunto.jpg');
    background-size: cover;
    background-position: center;
    padding: 3rem;
    color: var(--color-blanco);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-coral);
}

.info-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.info-highlights {
    background: rgba(252, 74, 26, 0.2);
    border-left: 4px solid var(--color-coral);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.info-highlights h3 {
    color: var(--color-coral);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-highlights ul {
    list-style: none;
}

.info-highlights li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.info-highlights li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-coral);
    font-weight: bold;
    font-size: 1.2rem;
}

.contact-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.contact-info strong {
    color: var(--color-coral);
}

/* COLUMNA DERECHA - FORMULARIO */
.form-column {
    padding: 3rem;
    color: var(--color-negro);
}

.form-column h2 {
    color: var(--color-coral);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.form-intro {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-negro);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.9rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    background: #f9f9f9;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-coral);
    background: var(--color-blanco);
    box-shadow: 0 0 0 3px rgba(252, 74, 26, 0.1);
}

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

.checkbox-group {
    margin: 1rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 0.7rem;
    cursor: pointer;
    accent-color: var(--color-coral);
}

.checkbox-label span {
    color: #555;
}

.h-captcha {
    margin: 1rem 0;
}

.btn-submit {
    background: var(--color-coral);
    color: var(--color-blanco);
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(252, 74, 26, 0.3);
}

.btn-submit:hover {
    background: #e03d0f;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(252, 74, 26, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    display: none;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* FOOTER */
footer {
    background: var(--color-negro);
    color: var(--color-blanco);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

footer p {
    opacity: 0.8;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .formulario-layout {
        grid-template-columns: 1fr;
    }

    .info-column {
        min-height: 400px;
    }

    .main-container {
        padding: 0 1.5rem 3rem;
    }

    .contacto-hero {
        padding: 3.5rem 1.5rem 2rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.8rem 1rem;
    }

    .logo img {
        height: 50px;
    }

    .contacto-hero {
        padding: 3rem 1rem 1.5rem;
    }

    .contacto-hero h1 {
        font-size: 2rem;
    }

    .contacto-hero p {
        font-size: 1.1rem;
        padding: 0 0.5rem;
    }

    .main-container {
        padding: 0 1rem 3rem;
        margin-top: -1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-column, .info-column {
        padding: 2rem 1.5rem;
    }

    .info-content h2 {
        font-size: 2rem;
    }

    .info-content p {
        font-size: 1rem;
    }

    .info-highlights h3 {
        font-size: 1.2rem;
    }

    .info-highlights li {
        font-size: 0.95rem;
    }

    .contact-info p {
        font-size: 0.95rem;
    }

    .form-column h2 {
        font-size: 1.8rem;
    }

    .form-intro {
        font-size: 0.95rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    .btn-submit {
        padding: 1.1rem 2.5rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 640px) {
    header {
        padding: 0.7rem 0.8rem;
    }

    .logo img {
        height: 45px;
    }

    .contacto-hero {
        padding: 2.5rem 0.8rem 1.5rem;
    }

    .contacto-hero h1 {
        font-size: 1.8rem;
    }

    .contacto-hero p {
        font-size: 1rem;
        padding: 0;
    }

    .main-container {
        padding: 0 0.8rem 2rem;
    }

    .formulario-layout {
        border-radius: 15px;
    }

    .form-column, .info-column {
        padding: 1.5rem 1.2rem;
    }

    .info-content h2 {
        font-size: 1.7rem;
    }

    .info-content p {
        font-size: 0.95rem;
    }

    .info-highlights {
        padding: 1.2rem;
    }

    .info-highlights h3 {
        font-size: 1.1rem;
    }

    .info-highlights li {
        font-size: 0.9rem;
        padding: 0.4rem 0;
        padding-left: 1.3rem;
    }

    .contact-info {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    .contact-info p {
        font-size: 0.9rem;
    }

    .form-column h2 {
        font-size: 1.6rem;
    }

    .form-intro {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .contacto-form {
        gap: 1.2rem;
    }

    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .checkbox-label {
        font-size: 0.85rem;
    }

    .checkbox-label input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }

    .btn-submit {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    footer {
        padding: 1.5rem 0.8rem;
    }

    footer p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .contacto-hero h1 {
        font-size: 1.6rem;
    }

    .contacto-hero p {
        font-size: 0.95rem;
    }

    .form-column, .info-column {
        padding: 1.2rem 1rem;
    }

    .info-content h2 {
        font-size: 1.5rem;
    }

    .form-column h2 {
        font-size: 1.4rem;
    }

    .btn-submit {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* LOADING SPINNER */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Estilos que antes iban en atributos style="" (con !important para conservar su prioridad) */
.enlace-coral-subrayado {
    color: var(--color-coral) !important;
    text-decoration: underline !important;
}

.footer-enlaces {
    margin-top: 0.5rem !important;
}

.enlace-coral {
    color: var(--color-coral) !important;
}

