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

/* === HERO === */

.hero-contacto {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(13,31,78,0.40) 0%, rgba(30,58,138,0.30) 60%, rgba(37,99,235,0.20) 100%),
        url('../assets/hero-contacto.png') center center / cover no-repeat;
    overflow: hidden;
    padding-top: 65px;
}

.hero-contacto::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(227, 178, 60, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-contacto .hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
    padding: 4rem 0 3rem;
}

.hero-contacto .hero-subtitle {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.hero-contacto .hero-main-title {
    display: block;
    font-size: 3.75rem;
    font-weight: 700;
    color: white;
    font-family: var(--font-display);
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.hero-contacto .hero-description {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.82);
    max-width: 540px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* Hero quick contact buttons */
.hero-quick-contacts {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-quick-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.hero-quick-btn i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.hero-quick-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.hero-quick-label {
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-quick-num {
    font-size: 0.95rem;
    font-weight: 700;
}

.hero-quick-btn--phone {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.hero-quick-btn--phone i { color: var(--accent-color); }

.hero-quick-btn--wa {
    background: rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.35);
    color: white;
}

.hero-quick-btn--wa i { color: #25D366; }

.hero-quick-btn--email {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.hero-quick-btn--email i { color: var(--accent-color); }

/* Scroll indicator */
.hero-contacto .hero-scroll {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
}

.hero-contacto .scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
}

.hero-contacto .scroll-indicator i {
    animation: contactBounce 1.6s ease infinite;
}

@keyframes contactBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* === SECTION BACKGROUNDS === */

.contacto-section {
    padding: 5rem 0;
}

.contacto-section.bg-azul {
    background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
}

.contacto-section.bg-light {
    background: linear-gradient(135deg, #F8FAFF 0%, #EEF4FF 100%);
}

/* === SECTION HEADER === */

.cont-section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding-left: 1.5rem;
    border-left: 4px solid var(--accent-color);
}

.cont-section-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cont-section-icon i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.cont-section-icon--light {
    background: rgba(30, 58, 138, 0.07);
    border: 2px solid rgba(30, 58, 138, 0.15);
}

.cont-section-icon--light i {
    color: var(--primary-color);
}

.cont-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    font-family: var(--font-display);
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.cont-section-title--dark {
    color: var(--primary-color);
}

.cont-section-subtitle {
    font-size: 0.975rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.cont-section-subtitle--dark {
    color: #6B7280;
}

/* === CONTACT METHOD CARDS === */

.contact-methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* Make phone + email row center when they're in the last row */
.contact-methods-grid > .contact-method-card:nth-child(4),
.contact-methods-grid > .contact-method-card:nth-child(5) {
    /* They naturally flow into 3+2 grid */
}

.contact-method-card {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    border-top: 4px solid var(--accent-color);
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.contact-method-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(30, 58, 138, 0.14);
}

.contact-method-card--wa {
    border-top-color: #25D366;
}

.cm-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.cm-icon i {
    font-size: 1.4rem;
}

.cm-icon--phone {
    background: rgba(30, 58, 138, 0.08);
}

.cm-icon--phone i { color: var(--primary-color); }

.cm-icon--wa {
    background: rgba(37, 211, 102, 0.1);
}

.cm-icon--wa i { color: #25D366; }

.cm-icon--email {
    background: rgba(30, 58, 138, 0.08);
}

.cm-icon--email i { color: var(--primary-color); }

.contact-method-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.cm-role {
    font-size: 0.8rem;
    color: #6B7280;
    margin: 0;
}

.cm-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.cm-number {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.cm-number:hover {
    color: #2563EB;
}

.cm-number--wa {
    color: #1a9e4a;
}

.cm-number--wa:hover {
    color: #25D366;
}

.cm-number--email {
    font-size: 0.95rem;
    word-break: break-all;
}

.cm-hint {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.775rem;
    color: #9CA3AF;
}

.cm-hint i { font-size: 0.7rem; }

.cm-hint--wa {
    color: #1a9e4a;
    font-weight: 500;
}

/* === CONTACT FORM LAYOUT === */

.contact-form-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 2rem;
    align-items: start;
}

/* --- Info Panel (dark gradient — old design style) --- */
.info-panel {
    background: linear-gradient(135deg, #1a2e6e 0%, #1E3A8A 60%, #2563EB 100%);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.3);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.info-panel::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: rgba(227, 178, 60, 0.07);
    border-radius: 50%;
    pointer-events: none;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.info-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(227, 178, 60, 0.2);
    border: 1px solid rgba(227, 178, 60, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-item-icon i {
    font-size: 1rem;
    color: var(--accent-color);
}

.info-item-text h4 {
    font-size: 0.775rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
}

.info-item-text p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
}

/* Info panel direct contacts */
.info-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding-top: 0.25rem;
}

.info-contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.875rem;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-contact-link:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.info-contact-link i {
    font-size: 1.1rem;
    width: 20px;
    flex-shrink: 0;
}

.info-contact-link span {
    font-weight: 700;
    font-size: 0.875rem;
    flex: 1;
    color: white;
}

.info-contact-link em {
    font-style: normal;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
}

.info-contact-link--phone i { color: var(--accent-color); }
.info-contact-link--wa i { color: #25D366; }

/* --- Form Panel --- */
.form-panel {
    background: white;
    border-radius: 18px;
    border-top: 4px solid var(--accent-color);
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.13);
    padding: 2.25rem 2.5rem;
}

.form-panel-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #F3F4F6;
    position: relative;
}

.form-panel-header h3 {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-display);
    margin-bottom: 0.4rem;
    line-height: 1.2;
}

.form-panel-header h3::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #F59E0B);
    border-radius: 2px;
    margin-top: 0.6rem;
}

.form-panel-header p {
    font-size: 0.875rem;
    color: #6B7280;
    margin: 0;
    margin-top: 0.875rem;
}

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

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

.form-group--full {
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.required {
    color: #EF4444;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    font-size: 0.9rem;
    background: #F9FAFB;
    font-family: inherit;
    color: #1F2937;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9CA3AF;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 14px;
    padding-right: 2.5rem;
    cursor: pointer;
    appearance: none;
}

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

/* Form feedback */
.form-feedback {
    padding: 0;
    margin-bottom: 0;
    font-size: 0.875rem;
    border-radius: 10px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, padding 0.3s ease, margin-bottom 0.3s ease;
}

.form-feedback.visible {
    max-height: 100px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.form-feedback.success {
    background: rgba(16, 185, 129, 0.1);
    color: #065F46;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-feedback.error {
    background: rgba(239, 68, 68, 0.08);
    color: #991B1B;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.form-submit-btn {
    width: 100%;
    padding: 0.925rem 2rem;
    background: linear-gradient(135deg, #FFF8E1 0%, #FFE082 50%, #E3B23C 100%);
    color: #1a2740;
    border: none;
    border-radius: 10px;
    font-size: 0.975rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    font-family: inherit;
    box-shadow: 0 4px 16px rgba(227, 178, 60, 0.28);
    letter-spacing: 0.02em;
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(227, 178, 60, 0.42);
}

.form-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

