
:root {
    --primary-color: #dd1919;
    --primary-light: #ff6b6b;
    --primary-dark: #b71c1c;
    --secondary-color: #f8f9fa;
    --text-primary: #333333;
    --text-secondary: #666666;
    --success-color: #1fd655;
    --transition-time: 0.4s;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    background-color: #f5f5f7;
}

/* ESTILO FORMULARIO */
.form-section {
    padding: 60px 0; 
    background-color: #f5f5f7;
    position: relative;
    min-height: calc(100vh - 160px); 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.form-section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    
    background: 
        radial-gradient(circle at 20% 30%, rgba(221, 25, 25, 0.03) 0%, transparent 35%),
        radial-gradient(circle at 80% 70%, rgba(221, 25, 25, 0.03) 0%, transparent 35%),
        linear-gradient(45deg, transparent 48%, rgba(221, 25, 25, 0.09) 48%, rgba(221, 25, 25, 0.03) 52%, transparent 42%),
        linear-gradient(-45deg, transparent 48%, rgba(221, 25, 25, 0.09) 48%, rgba(221, 25, 25, 0.03) 52%, transparent 42%);
    background-size: 200px 200px, 200px 200px, 60px 60px, 60px 60px;
    animation: waterFlow 20s linear infinite;
    z-index: 0;
}

@keyframes waterFlow {
    0% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-50px) translateX(50px); }
    50% { transform: translateY(0) translateX(100px); }
    75% { transform: translateY(50px) translateX(50px); }
    100% { transform: translateY(0) translateX(0); }
}

.form-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 30px; 
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.form-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.form-title {
    color: var(--text-primary);
    margin-bottom: 25px; 
    position: relative;
    padding-bottom: 15px;
    text-align: center;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: -0.5px;
}

.form-title:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    transform: translateX(-50%);
    border-radius: 3px;
}

.floating-label {
    position: relative;
    margin-bottom: 20px; 
}

.floating-input, .floating-textarea {
    width: 100%;
    padding: 16px 15px 10px; 
    border: none;
    border-radius: 8px;
    background-color: #f7f7f9;
    transition: all var(--transition-time) ease;
    font-size: 15px; 
    font-weight: 400;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.floating-input:focus, .floating-textarea:focus {
    outline: none;
    background-color: #ffffff;
    box-shadow: inset 0 0 0 2px var(--primary-color), var(--shadow-md);
}

.floating-label label {
    position: absolute;
    top: 16px; 
    left: 15px;
    color: var(--text-secondary);
    transition: all var(--transition-time) ease;
    pointer-events: none;
    font-weight: 500;
    font-size: 14px; 
    opacity: 0.8;
}

.floating-input:focus ~ label,
.floating-input:not(:placeholder-shown) ~ label,
.floating-textarea:focus ~ label,
.floating-textarea:not(:placeholder-shown) ~ label {
    top: 5px; 
    left: 13px;
    font-size: 11px; 
    color: var(--primary-color);
    font-weight: 600;
    opacity: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}


.floating-label.name-field label,
.floating-label.business-field label {
    top: 14px; 
}

.floating-label.name-field .floating-input:focus ~ label,
.floating-label.name-field .floating-input:not(:placeholder-shown) ~ label,
.floating-label.business-field .floating-input:focus ~ label,
.floating-label.business-field .floating-input:not(:placeholder-shown) ~ label {
    top: 3px; 
    font-size: 10px; 
}

.floating-textarea {
    min-height: 120px; 
    resize: vertical;
    line-height: 1.6;
    padding-top: 22px; 
}

.form-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 32px; 
    font-size: 15px; 
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-time) ease;
    box-shadow: 0 5px 15px rgba(233, 42, 42, 0.3);
    display: block;
    margin: 8px auto 0; 
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.form-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(233, 42, 42, 0.4);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
}

.form-btn:active {
    transform: translateY(0);
}

.form-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transition: left 0.8s ease;
}

.form-btn:hover::after {
    left: 100%;
}

.form-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px; 
}

.form-icon i {
    font-size: 28px; 
    color: white;
    background: linear-gradient(135deg, var(--primary-color) 10%, var(--primary-dark) 90%);
    width: 70px; 
    height: 70px; 
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-time) ease;
    box-shadow: 0 10px 20px rgba(233, 42, 42, 0.2);
    position: relative;
    z-index: 1;
}

.form-icon i::before {
    position: relative;
    z-index: 3;
}

.form-icon i::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: 50%;
    opacity: 0;
    z-index: 2;
    transition: opacity var(--transition-time) ease;
}

.form-container:hover .form-icon i {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 15px 30px rgba(233, 42, 42, 0.3);
}

.form-container:hover .form-icon i::after {
    opacity: 1;
}


.form-success {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s ease;
    z-index: 999;
    padding: 30px; 
}

.form-success.show {
    opacity: 1;
    visibility: visible;
}

.success-icon {
    font-size: 70px; 
    color: var(--success-color);
    margin-bottom: 15px; 
    animation: scaleUp 0.5s forwards;
    transform: scale(0);
    background: rgba(31, 214, 85, 0.1);
    width: 120px; 
    height: 120px; 
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(31, 214, 85, 0.2);
}

@keyframes scaleUp {
    0% { transform: scale(0); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.form-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 0.02;
    pointer-events: none;
    overflow: hidden;
}

/* Error de validación */
.form-error {
    color: var(--primary-color);
    font-size: 12px;
    margin-top: 5px;
    display: none;
    font-weight: 500;
    padding-left: 5px;
    transition: all 0.3s ease;
}

.invalid-input .form-error {
    display: block;
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.invalid-input .floating-input,
.invalid-input .floating-textarea {
    box-shadow: inset 0 0 0 2px var(--primary-color), var(--shadow-sm);
    background-color: rgba(221, 25, 25, 0.03);
}

.form-row {
    display: flex;
    gap: 15px; 
    margin-bottom: 8px; 
}

.form-col {
    flex: 1;
}

/* Animaciones para los elementos del formulario */
.form-container .floating-label {
    transform: translateY(20px);
    opacity: 0;
    animation: slideUpFade 0.5s forwards;
}

.form-container .floating-label:nth-child(1) { animation-delay: 0.1s; }
.form-container .floating-label:nth-child(2) { animation-delay: 0.2s; }
.form-container .floating-label:nth-child(3) { animation-delay: 0.3s; }
.form-container .floating-label:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideUpFade {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Estilos para el mensaje de éxito */
.form-success h3 {
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 24px;
}

.form-success p {
    color: var(--text-secondary);
    text-align: center;
    max-width: 80%;
    font-size: 15px;
    margin-bottom: 20px;
}

/* ESTILOS PARA LA SECCIÓN DE TELÉFONOS */
.contact-phones {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(0,0,0,0.08);
    text-align: center;
}

.contact-phones-title {
    font-size: 1.3rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-phones-title i {
    color: var(--primary-color);
}

.phone-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.phone-item {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    padding: 7px 15px;
    background-color: #f7f7f9;
    border-radius: 50px;
    transition: all var(--transition-time) ease;
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.6s both;
    cursor: pointer;
}

.phone-item:hover {
    text-decoration: none;
    color: inherit;
    background-color: rgba(221, 25, 25, 0.08);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.phone-item i {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 15px;
}

.phone-item span {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
}

.contact-note {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 12px;
    font-style: italic;
}

/* Media Queries */
@media (max-width: 768px) {
    .form-section {
        padding: 30px 15px;
    }
    
    .form-container {
        padding: 25px 15px;
        margin: 0 10px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-title {
        font-size: 1.6rem;
    }
    
    .form-icon i {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .phone-numbers {
        flex-direction: column;
        align-items: center;
    }
    
    .phone-item {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .form-icon i {
        width: 55px;
        height: 55px; 
        font-size: 22px; 
    }
    
    .form-title {
        font-size: 1.4rem; 
    }
    
    .form-btn {
        padding: 10px 25px; 
        font-size: 14px; 
        width: 100%;
    
    
    .success-icon {
        width: 100px; 
        height: 100px; 
        font-size: 50px; 
    }
    
    .contact-phones-title {
        font-size: 1.1rem; 
    }
    }
}
