/* ===================================
   CONTACTO PAGE STYLES
   =================================== */

/* ===================================
   HERO CONTACTO
   =================================== */

.contacto-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 180px 60px 100px;
    overflow: hidden;
}

.contacto-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 25% 35%, rgba(201, 167, 124, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 75% 65%, rgba(124, 154, 146, 0.12) 0%, transparent 50%),
        linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
    z-index: 0;
}

.contacto-hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.contacto-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 30px;
}

.contacto-hero-title span {
    display: block;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

.contacto-hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    line-height: 1.8;
}

/* ===================================
   CONTACTO SECTION
   =================================== */

.contacto-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===================================
   FORMULARIO
   =================================== */

.contacto-form-container {
    background: var(--cream);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.form-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.form-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 40px;
    line-height: 1.7;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

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

.form-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: 0.5px;
}

.form-input,
.form-textarea {
    padding: 16px 20px;
    background: var(--white);
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--dark);
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--dark);
    box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.08);
}

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

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-label {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--white);
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.radio-label:hover {
    border-color: var(--dark);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border: 3px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    position: relative;
    margin-top: 2px;
    transition: var(--transition);
}

.radio-label input[type="radio"]:checked ~ .radio-custom {
    border-color: var(--dark);
}

.radio-label input[type="radio"]:checked ~ .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--dark);
    border-radius: 50%;
}

/* Color por segmento al seleccionar */
.radio-label:has(input[value="empresa"]:checked) {
    border-color: var(--gold);
    background: linear-gradient(135deg, #FFFBF5 0%, #ffffff 100%);
}
.radio-label:has(input[value="empresa"]:checked) .radio-custom {
    border-color: var(--gold);
}
.radio-label:has(input[value="empresa"]:checked) .radio-custom::after {
    background: var(--gold);
}

.radio-label:has(input[value="negocio"]:checked) {
    border-color: var(--blue-gray);
    background: linear-gradient(135deg, #F4F7FA 0%, #ffffff 100%);
}
.radio-label:has(input[value="negocio"]:checked) .radio-custom {
    border-color: var(--blue-gray);
}
.radio-label:has(input[value="negocio"]:checked) .radio-custom::after {
    background: var(--blue-gray);
}

.radio-label:has(input[value="clinica"]:checked) {
    border-color: var(--green);
    background: linear-gradient(135deg, #F4F9F7 0%, #ffffff 100%);
}
.radio-label:has(input[value="clinica"]:checked) .radio-custom {
    border-color: var(--green);
}
.radio-label:has(input[value="clinica"]:checked) .radio-custom::after {
    background: var(--green);
}

.radio-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.radio-text strong {
    font-size: 1.1rem;
    color: var(--dark);
}

.radio-text small {
    font-size: 0.9rem;
    color: var(--gray);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border: 3px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    position: relative;
    margin-top: 2px;
    transition: var(--transition);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom {
    background: var(--gold);
    border-color: var(--dark);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
}

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

.link-gold {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

.link-gold:hover {
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    margin-top: 15px;
    font-size: 1.1rem;
}

.form-note {
    font-size: 0.9rem;
    color: var(--gray);
    text-align: center;
    margin-top: -10px;
}

/* ===================================
   SUCCESS MESSAGE
   =================================== */

.form-success {
    text-align: center;
    padding: 60px 40px;
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 700;
    box-shadow: 0 20px 60px rgba(124, 154, 146, 0.3);
    animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.form-success h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}

.form-success p {
    font-size: 1.15rem;
    color: var(--gray);
    line-height: 1.8;
}

/* ===================================
   INFO SIDEBAR
   =================================== */

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background: var(--cream);
    padding: 35px 30px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--dark);
    transition: var(--transition);
}

.info-card:hover .info-icon svg {
    stroke: var(--green);
    transform: scale(1.1);
}

.info-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.info-card p {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 5px;
}

.info-card a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.info-card a:hover {
    color: var(--gold-dark);
}

.info-note {
    font-size: 0.9rem !important;
    color: var(--green) !important;
    font-weight: 600 !important;
}

.info-highlight {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
    padding: 35px 30px;
    border-radius: 16px;
    color: var(--white);
}

.info-highlight h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

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

.info-highlight ul li {
    padding: 10px 0;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}

.info-testimonial {
    background: var(--cream);
    padding: 35px 30px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

.info-testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 700;
    color: rgba(201, 167, 124, 0.15);
    line-height: 1;
}

.testimonial-stars {
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}

.testimonial-author span {
    font-size: 0.9rem;
    color: var(--green);
    font-weight: 600;
}

/* ===================================
   FAQ SECTION
   =================================== */

.faq-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
}

/* Acordeón */
.faq-accordion {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.faq-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-group-title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(201, 167, 124, 0.2);
}

.faq-item {
    border-bottom: 1px solid rgba(26, 26, 46, 0.06);
    overflow: hidden;
}

.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-fast);
}

.faq-trigger span:first-child {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
    transition: color 0.25s ease;
}

.faq-trigger:hover span:first-child {
    color: var(--dark);
}

.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(201, 167, 124, 0.08);
    border: 1px solid rgba(201, 167, 124, 0.2);
    transition: var(--transition-fast);
}

.faq-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--dark);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-trigger[aria-expanded="true"] .faq-icon {
    background: var(--gold);
    border-color: var(--dark);
}

.faq-trigger[aria-expanded="true"] .faq-icon svg {
    stroke: var(--white);
    transform: rotate(180deg);
}

.faq-trigger[aria-expanded="true"] span:first-child {
    color: var(--dark);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.3s ease;
}

.faq-open .faq-answer {
    max-height: 300px;
    padding-bottom: 24px;
}

.faq-answer p {
    font-size: 1.05rem;
    color: var(--gray);
    line-height: 1.85;
    padding-right: 52px;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    word-spacing: -0.01em;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 968px) {
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contacto-form-container {
        padding: 40px;
    }

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

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 640px) {
    .contacto-hero {
        padding: 140px 25px 80px;
    }

    .contacto-form-container {
        padding: 30px 25px;
    }

    .form-title {
        font-size: 2rem;
    }

    .radio-label {
        padding: 15px;
    }

    .info-card,
    .info-highlight,
    .info-testimonial {
        padding: 25px 20px;
    }
}


/* === RESPONSIVE FIXES CONTACTO === */

@media (max-width: 768px) {
    .contacto-form-container {
        padding: 32px 24px;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .radio-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .contacto-form-container {
        padding: 24px 16px;
    }
    .radio-label {
        padding: 14px 12px;
        align-items: flex-start;
    }
    .radio-text strong {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    .btn-submit {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}
