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

:root {
    --primary: #c10230;
    --white: #ffffff;
    --dark: #222222;
    --gray-light: #f5f5f5;
    --gray-border: #e5e5e5;
    --gray-text: #737373;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #000000;
}

/* FONDO ROJO CON GLOW EFFECT */
.main-section {
    min-height: 100vh;
    background-color: var(--primary);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* columna = vertical */
    align-items: center;    /* centra horizontalmente */
    justify-content: flex-start; 
    padding: 2rem 1rem;
    gap: 1rem; /* espacio entre logo y formulario */
}

.glow-container {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    pointer-events: none;
}

.glow-1 {
    position: absolute;
    left: 25%;
    top: 33%;
    width: 600px;
    height: 600px;
    background: var(--white);
    border-radius: 50%;
    filter: blur(120px);
    animation: glow-pulse 6s ease-in-out infinite;
}

.glow-2 {
    position: absolute;
    right: 25%;
    bottom: 33%;
    width: 600px;
    height: 600px;
    background: var(--white);
    border-radius: 50%;
    filter: blur(120px);
    animation: glow-pulse 6s ease-in-out infinite reverse;
}

.glow-3 {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 400px;
    height: 400px;
    background: var(--white);
    border-radius: 50%;
    filter: blur(100px);
    transform: translate(-50%, -50%);
    animation: glow-pulse 8s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

/* Logo at top, always visible and centered */
.logo-wrapper {
    position: relative;
    z-index: 10;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
    display: flex;
    justify-content: center; /* centra logo horizontalmente */
    width: 100%;
}

.logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    max-width: 200px;
}

/* Main wrapper that centers the form horizontally */
.form-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 650px; 
    display: flex;
    flex-direction: column; /* asegurarse que el formulario se muestre vertical */
    justify-content: flex-start;
    align-items: center;
    margin: 0 auto; /* centra horizontalmente */
}

.form-container {
    width: 100%;
}

/* Simplified step indicator - no labels, just numbers */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    align-items: center;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid var(--white);
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.step-label {
    display: none;
}

/* CARD */
.card {
    background: var(--white);
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

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

.card-content {
    padding: 2rem 1.5rem;
}

/* FORMULARIO */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.step-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}

.step-intro {
    font-size: 0.95rem;
    color: var(--gray-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.7rem;
}

.form-input,
.form-textarea {
    width: 100%;
    border: 2px solid var(--gray-border);
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    position: relative;
}

.form-input {
    height: 44px;
}

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

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(193, 2, 48, 0.1);
}

.input-highlight {
    display: block;
    height: 2px;
    background: var(--primary);
    width: 0%;
    margin-top: -6px;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.form-input:focus ~ .input-highlight,
.form-textarea:focus ~ .input-highlight {
    width: 100%;
}

/* UPLOAD FOTO */
.photo-upload {
    border: 2px dashed var(--gray-border);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--gray-light);
}

.photo-upload:hover {
    border-color: var(--primary);
    background: rgba(193, 2, 48, 0.05);
}

.photo-upload svg {
    color: var(--primary);
    margin: 0 auto 0.5rem;
}

.upload-text {
    font-size: 0.9rem;
    color: var(--gray-text);
    margin: 0;
}

.photo-preview {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-top: 1rem;
}

.photo-preview img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.change-photo-btn {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    border: none;
    border-radius: 0.3rem;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s ease;
}

.change-photo-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.hidden {
    display: none !important;
}

/* Confirmation box in step 3 */
.confirmation-box {
    background: var(--gray-light);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 1rem;
}

.confirmation-text {
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.confirmation-text:last-child {
    margin-bottom: 1rem;
}

/* COMPARTIR EN REDES */
.social-share {
    background: var(--white);
    border-radius: 0.5rem;
    padding: 1rem 0;
}

.share-text {
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
}

.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
}

.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--white);
}

.social-btn svg {
    width: 24px;
    height: 24px;
}

.social-btn.facebook {
    background: #1877F2;
}

.social-btn.facebook:hover {
    background: #165EC9;
    transform: translateY(-2px);
}

.social-btn.instagram {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF);
}

.social-btn.instagram:hover {
    transform: translateY(-2px);
}

.social-btn.linkedin {
    background: #0A66C2;
}

.social-btn.linkedin:hover {
    background: #084D92;
    transform: translateY(-2px);
}

.social-btn.tiktok {
    background: #000000;
    border: 1px solid #25f4ee;
}

.social-btn.tiktok:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
}

/* BOTONES DE NAVEGACIÓN */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-prev,
.btn-next,
.btn-submit {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-next,
.btn-submit {
    background: var(--primary);
    color: var(--white);
}

.btn-next:hover,
.btn-submit:hover {
    background: #a00228;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(193, 2, 48, 0.3);
}

.btn-prev {
    background: var(--gray-light);
    color: var(--dark);
    border: 1px solid var(--gray-border);
}

.btn-prev:hover {
    background: var(--gray-border);
}

/* MENSAJE DE ÉXITO */
.success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1rem;
    text-align: center;
}

.success-icon-container {
    width: 64px;
    height: 64px;
    background: rgba(193, 2, 48, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successBounce 0.6s ease;
}

@keyframes successBounce {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.success-icon {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.success-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
}

.success-text {
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.btn-new-message {
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-new-message:hover {
    background: #a00228;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(193, 2, 48, 0.3);
}

/* PIE DE PÁGINA */
footer {
    background: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 1rem;
    text-align: center;
    color: var(--white);
    margin-top: auto;
}

.footer-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ERRORES */
.error-message {
    color: #dc2626;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fee2e2;
    border-radius: 0.5rem;
    border-left: 3px solid #dc2626;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .logo {
        height: 40px;
    }

    .card-content {
        padding: 1.5rem 1rem;
    }

    .social-buttons {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .step-indicator {
        gap: 1rem;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .step-title {
        font-size: 1.25rem;
    }

    .step-intro {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .main-section {
        padding: 1rem 0.75rem;
    }

    .logo {
        height: 35px;
    }

    .card-content {
        padding: 1rem 0.75rem;
    }

    .step-indicator {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }

    .form-actions {
        gap: 0.5rem;
    }

    .btn-prev,
    .btn-next,
    .btn-submit {
        padding: 0.65rem 0.5rem;
        font-size: 0.9rem;
    }
}
