/* ============================================================
   REYES IT - CONTACTO (UI/UX PROFESIONAL)
   ============================================================ */

/* ============================================================
   HERO CON WAVE
   ============================================================ */
.page-hero-with-wave {
    position: relative;
    padding: 160px 0 120px;
    text-align: center;
    background: rgba(248, 250, 255, 0.6);
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.page-hero-with-wave::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(31, 94, 187, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(73, 167, 232, 0.04) 0%, transparent 60%);
    z-index: 0;
    animation: gradientMove 15s ease-in-out infinite alternate;
}

.page-hero-with-wave .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.page-hero-with-wave .page-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.page-hero-with-wave .page-hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.page-hero-with-wave .page-hero-content h1 .highlight {
    background: linear-gradient(135deg, #1f5ebb, #49a7e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero-with-wave .page-hero-content p {
    color: #4a4a6a;
    font-size: 1.2rem;
}

.page-hero-with-wave .hero-btn-wrapper {
    margin-top: 24px;
}

.page-hero-with-wave .hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    pointer-events: none;
}

.page-hero-with-wave .hero-wave svg {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: -2px;
}

@keyframes gradientMove {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.05) rotate(3deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* ============================================================
   CONTACTO - GRID PRINCIPAL
   ============================================================ */
.contact-section {
    padding: 80px 0 100px;
    background: #ffffff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: stretch;
}

/* ============================================================
   FORMULARIO CARD
   ============================================================ */
.contact-form-card {
    background: #ffffff;
    border: 1px solid #e8ecf0;
    border-radius: 24px;
    padding: 40px 38px 45px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
}

.contact-form-card:hover {
    box-shadow: 0 10px 50px rgba(31, 94, 187, 0.06);
    border-color: rgba(31, 94, 187, 0.10);
}

.contact-form-header {
    margin-bottom: 30px;
}

.contact-form-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.contact-form-header p {
    color: #4a4a6a;
    font-size: 0.9rem;
}

/* ============================================================
   FORMULARIO - CAMPOS CON ICONOS
   ============================================================ */
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form .form-group {
    margin-bottom: 18px;
}

.contact-form .form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.82rem;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.contact-form .form-group label .required {
    color: #dc3545;
}

/* Input con icono - GENERAL */
.contact-form .input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid #e8ecf0;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: #ffffff;
    overflow: hidden;
}

.contact-form .input-wrapper:focus-within {
    border-color: #1f5ebb;
    box-shadow: 0 0 0 4px rgba(31, 94, 187, 0.08);
    transform: translateY(-2px);
}

/* Iconos generales (inputs normales) */
.contact-form .input-wrapper i {
    min-width: 44px;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    color: #b0b0c8;
    font-size: 1rem;
    transition: color 0.3s ease;
    flex-shrink: 0;
    height: 100%;
}

.contact-form .input-wrapper:focus-within i {
    color: #1f5ebb;
}

/* Inputs y selects */
.contact-form .input-wrapper input,
.contact-form .input-wrapper select {
    width: 100%;
    padding: 14px 16px 14px 8px;
    border: none;
    outline: none;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: #1a1a2e;
    background: transparent;
    min-height: 52px;
}

.contact-form .input-wrapper select {
    appearance: none;
    cursor: pointer;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b0b0c8' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

/* ============================================================
   CORRECCIÓN DEFINITIVA: TEXTAREA CON ICONO LÁPIZ
   ============================================================ */

/* Wrapper del textarea - sin padding extra */
.contact-form .textarea-wrapper {
    padding-left: 0 !important;
    align-items: flex-start !important;
}

/* Icono del textarea - con padding izquierdo para separarse del borde */
.contact-form .textarea-wrapper i {
    padding: 16px 0 0 16px !important;
    min-width: 44px !important;
    width: 44px !important;
    height: auto !important;
    align-self: flex-start !important;
    color: #b0b0c8 !important;
    font-size: 1rem !important;
}

/* El textarea en sí */
.contact-form .input-wrapper textarea {
    width: 100%;
    padding: 14px 16px 14px 8px !important;
    border: none;
    outline: none;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: #1a1a2e;
    background: transparent;
    resize: vertical;
    min-height: 100px !important;
    line-height: 1.6 !important;
}

/* Enfocado */
.contact-form .textarea-wrapper:focus-within i {
    color: #1f5ebb !important;
}

/* Placeholder */
.contact-form .input-wrapper input::placeholder,
.contact-form .input-wrapper textarea::placeholder {
    color: #b0b0c8;
}

/* ============================================================
   CHECKBOXES
   ============================================================ */
.contact-form .form-checkboxes {
    margin: 20px 0 16px;
}

.contact-form .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.contact-form .checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    accent-color: #1f5ebb;
    cursor: pointer;
}

.contact-form .checkbox-group label {
    font-weight: 400;
    font-size: 0.9rem;
    color: #4a4a6a;
    cursor: pointer;
    line-height: 1.5;
}

.contact-form .checkbox-group a {
    color: #1f5ebb;
    text-decoration: underline;
}

.contact-form .checkbox-group a:hover {
    color: #2e7fd6;
}

/* ============================================================
   ERRORES Y ÉXITO
   ============================================================ */
.contact-form .form-error {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.06);
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    border: 1px solid rgba(220, 53, 69, 0.12);
}

.contact-form .form-success {
    color: #155724;
    background: rgba(21, 87, 36, 0.06);
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    border: 1px solid rgba(21, 87, 36, 0.12);
}

/* ============================================================
   BOTÓN ENVIAR
   ============================================================ */
.contact-form .btn-submit {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #1f5ebb, #2e7fd6);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-form .btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #2e7fd6, #49a7e8);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 14px;
    z-index: -1;
}

.contact-form .btn-submit:hover::before {
    opacity: 1;
}

.contact-form .btn-submit i,
.contact-form .btn-submit span,
.contact-form .btn-submit .btn-submit-arrow {
    position: relative;
    z-index: 2;
}

.contact-form .btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(31, 94, 187, 0.3);
}

.contact-form .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.contact-form .btn-submit .btn-submit-arrow {
    transition: transform 0.3s ease;
    display: inline-block;
}

.contact-form .btn-submit:hover .btn-submit-arrow {
    transform: translateX(6px);
}

/* ============================================================
   SEGURIDAD
   ============================================================ */
.contact-form .form-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 0.8rem;
    color: #b0b0c8;
}

.contact-form .form-security i {
    color: #28a745;
}

/* ============================================================
   INFORMACIÓN DE CONTACTO
   ============================================================ */
.contact-info-card {
    background: #f8faff;
    border: 1px solid #f0f4ff;
    border-radius: 24px;
    padding: 40px 32px 38px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.contact-info-card:hover {
    border-color: rgba(31, 94, 187, 0.12);
    box-shadow: 0 10px 50px rgba(31, 94, 187, 0.04);
}

.contact-info-header {
    margin-bottom: 28px;
}

.contact-info-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.contact-info-header p {
    color: #4a4a6a;
    font-size: 0.9rem;
}

/* ============================================================
   ITEMS DE CONTACTO
   ============================================================ */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-info-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: rgba(31, 94, 187, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #1f5ebb;
    transition: all 0.3s ease;
}

.contact-info-item:hover .contact-info-icon {
    background: #1f5ebb;
    color: white;
    transform: scale(1.05);
}

.contact-info-text strong {
    display: block;
    font-size: 0.8rem;
    color: #1a1a2e;
    font-weight: 600;
}

.contact-info-text p {
    color: #4a4a6a;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.contact-info-text a {
    color: #4a4a6a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-text a:hover {
    color: #1f5ebb;
}

/* ============================================================
   REDES SOCIALES
   ============================================================ */
.contact-social {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #f0f4ff;
}

.contact-social p {
    font-size: 0.8rem;
    color: #4a4a6a;
    font-weight: 500;
    margin-bottom: 10px;
}

.contact-social-icons {
    display: flex;
    gap: 10px;
}

.contact-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    color: #1a1a2e;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid #e8ecf0;
}

.contact-social-icons a:hover {
    background: #1f5ebb;
    color: white;
    border-color: #1f5ebb;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(31, 94, 187, 0.15);
}

/* ============================================================
   ENLACES LEGALES
   ============================================================ */
.contact-legal {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 2px solid #f0f4ff;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 0.8rem;
}

.contact-legal a {
    color: #4a4a6a;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-legal a:hover {
    color: #1f5ebb;
}

.contact-legal span {
    color: #e0e0e0;
}

/* ============================================================
   CORRECCIÓN DEFINITIVA: DESACTIVAR ANIMACIONES EN CONTACTO
   ============================================================ */
.contact-form-card,
.contact-info-card,
.reveal,
.reveal-left,
.reveal-right {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transform: translateX(0) !important;
    animation: none !important;
    transition: none !important;
}

.contact-grid,
.contact-section .container,
.contact-form-card .contact-form-header,
.contact-info-card .contact-info-header {
    opacity: 1 !important;
    transform: none !important;
}

.section-header.reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ============================================================
   CORRECCIÓN ADICIONAL: Espaciado del icono en móviles
   ============================================================ */
@media (max-width: 480px) {
    .contact-form .textarea-wrapper i {
        padding: 14px 0 0 12px !important;
        min-width: 36px !important;
        width: 36px !important;
        font-size: 0.85rem !important;
    }
    .contact-form .input-wrapper textarea {
        padding: 12px 12px 12px 6px !important;
        min-height: 80px !important;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .page-hero-with-wave {
        padding: 140px 0 100px;
        min-height: 40vh;
    }
    .page-hero-with-wave .page-hero-content h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .contact-form-card {
        padding: 28px 20px 32px;
    }
    .contact-info-card {
        padding: 28px 20px 32px;
    }
    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .contact-form .input-wrapper input,
    .contact-form .input-wrapper select {
        font-size: 16px;
        padding: 12px 14px 12px 10px;
    }
    .contact-form .input-wrapper textarea {
        font-size: 16px;
        padding: 12px 14px 12px 10px;
        min-height: 80px;
    }
    .contact-info-header h3 {
        font-size: 1.2rem;
    }
    .contact-form-header h3 {
        font-size: 1.2rem;
    }
    .page-hero-with-wave {
        padding: 120px 0 80px;
        min-height: 35vh;
    }
    .page-hero-with-wave .page-hero-content h1 {
        font-size: 2rem;
    }
    .page-hero-with-wave .page-hero-content p {
        font-size: 1rem;
    }
    .contact-social-icons {
        justify-content: center;
    }
    .contact-social p {
        text-align: center;
    }
    .contact-legal {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .contact-form-card {
        padding: 20px 14px 24px;
        border-radius: 16px;
    }
    .contact-info-card {
        padding: 20px 14px 24px;
        border-radius: 16px;
    }
    .contact-form .input-wrapper input,
    .contact-form .input-wrapper select {
        font-size: 16px;
        padding: 10px 12px 10px 8px;
        border-radius: 10px;
    }
    .contact-form .input-wrapper textarea {
        font-size: 16px;
        padding: 10px 12px 10px 8px;
        min-height: 70px;
    }
    .contact-form .input-wrapper i {
        padding-left: 10px;
        font-size: 0.8rem;
    }
    .contact-info-item {
        gap: 10px;
    }
    .contact-info-icon {
        width: 34px;
        height: 34px;
        min-width: 34px;
        font-size: 0.9rem;
    }
    .contact-info-text strong {
        font-size: 0.75rem;
    }
    .contact-info-text p {
        font-size: 0.8rem;
    }
    .contact-social-icons a {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    .contact-legal {
        font-size: 0.7rem;
        gap: 4px;
    }
    .page-hero-with-wave {
        padding: 100px 0 60px;
        min-height: 30vh;
    }
    .page-hero-with-wave .page-hero-content h1 {
        font-size: 1.8rem;
    }
    .contact-form .checkbox-group label {
        font-size: 0.8rem;
    }
    .contact-form .btn-submit {
        font-size: 0.9rem;
        padding: 14px 20px;
    }
    .contact-form .form-security {
        font-size: 0.7rem;
        flex-wrap: wrap;
        text-align: center;
    }
}