/* ============================================
   KOLPA EDITORES - CONTACTO PAGE STYLES
   ============================================ */

/* ============================================
   HERO CONTACTO
   ============================================ */
.hero-contacto {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-contacto-bg {
    position: absolute;
    inset: 0;
    background: url('https://kolpaeditores.edu.pe/assets/img/slider3.jpg') center/cover no-repeat;
}

.hero-contacto-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(139, 0, 0, 0.75) 100%);
}

.hero-contacto-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero-contacto-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease forwards;
}

.hero-contacto-content p {
    font-size: 1.25rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

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

/* ============================================
   INFORMACIÓN DE CONTACTO
   ============================================ */
.contacto-info-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #06070a 0%, rgba(196, 30, 58, 0.03) 50%, #06070a 100%);
}

.contacto-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.contacto-info-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.contacto-info-card:hover {
    transform: translateY(-10px);
    border-color: var(--brand);
    box-shadow: 0 25px 60px rgba(196, 30, 58, 0.15);
}

.contacto-info-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff;
}

.contacto-info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.contacto-info-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.contacto-info-card a {
    color: var(--brand);
    font-weight: 500;
    transition: color 0.3s ease;
}

.contacto-info-card a:hover {
    color: #ffffff;
}

.contacto-horarios {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contacto-horarios span {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
}

.contacto-horarios strong {
    color: #ffffff;
}

/* ============================================
   FORMULARIO Y MAPA
   ============================================ */
.contacto-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Formulario */
.contacto-form-wrapper {
    background: var(--card);
    border-radius: var(--radius);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contacto-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contacto-form-wrapper > p {
    color: var(--muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group label .required {
    color: var(--brand);
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: var(--muted);
}

.form-control:focus {
    outline: none;
    border-color: var(--brand);
    background: rgba(196, 30, 58, 0.05);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

select.form-control option {
    background: #1a1a2e;
    color: #ffffff;
}

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

.btn-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.3);
}

.btn-submit i {
    font-size: 1.3rem;
}

.form-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
}

.form-note i {
    color: #25d366;
}

/* Mapa */
.contacto-map-wrapper {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contacto-map-wrapper h3 {
    padding: 1.5rem 2rem;
    font-size: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contacto-map-wrapper h3 i {
    color: var(--brand);
    margin-right: 0.5rem;
}

.map-container {
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(30%) contrast(1.1);
    transition: filter 0.3s ease;
}

.map-container iframe:hover {
    filter: grayscale(0%) contrast(1);
}

.map-address {
    padding: 1.5rem 2rem;
    background: rgba(196, 30, 58, 0.05);
}

.map-address p {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.map-address i {
    color: var(--brand);
    margin-top: 0.2rem;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    padding: 5rem 0;
    background: #06070a;
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(196, 30, 58, 0.3);
}

.faq-item.active {
    border-color: var(--brand);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--brand);
}

.faq-question i {
    font-size: 0.9rem;
    color: var(--brand);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 2rem 1.5rem;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.faq-answer-content ul {
    margin-top: 0.75rem;
    padding-left: 1.25rem;
}

.faq-answer-content li {
    margin-bottom: 0.5rem;
    position: relative;
}

.faq-answer-content li::marker {
    color: var(--brand);
}

/* ============================================
   REDES SOCIALES
   ============================================ */
.redes-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.1) 0%, rgba(139, 0, 0, 0.05) 100%);
}

.redes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.red-social-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    text-decoration: none;
}

.red-social-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: currentColor;
}

.red-social-card.facebook { color: #1877f2; }
.red-social-card.instagram { color: #e4405f; }
.red-social-card.youtube { color: #ff0000; }
.red-social-card.linkedin { color: #0077b5; }

.red-social-card:hover.facebook { box-shadow: 0 20px 50px rgba(24, 119, 242, 0.3); }
.red-social-card:hover.instagram { box-shadow: 0 20px 50px rgba(228, 64, 95, 0.3); }
.red-social-card:hover.youtube { box-shadow: 0 20px 50px rgba(255, 0, 0, 0.3); }
.red-social-card:hover.linkedin { box-shadow: 0 20px 50px rgba(0, 119, 181, 0.3); }

.red-social-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.red-social-card span {
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
}

/* ============================================
   CTA FINAL
   ============================================ */
.cta-contacto {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%);
    text-align: center;
}

.cta-contacto h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.cta-contacto p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE CONTACTO
   ============================================ */
@media (max-width: 1024px) {
    .contacto-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contacto-main {
        grid-template-columns: 1fr;
    }

    .redes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-contacto {
        height: 40vh;
        min-height: 300px;
    }

    .contacto-form-wrapper {
        padding: 1.5rem;
    }

    .faq-question {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }

    .faq-answer-content {
        padding: 0 1.5rem 1.25rem;
    }

    .map-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .redes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .red-social-card {
        padding: 1.5rem 1rem;
    }

    .red-social-card i {
        font-size: 2.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}
