/* ==========================
   CONTACTO.CSS - Estilos espec¨ªficos
   ========================== */

/* Hero Section */
.hero-contacto {
    height: 350px;
    background: linear-gradient(135deg, #1C3A4E 0%, #009E5E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-contacto .hero-overlay {
    text-align: center;
    color: white;
    z-index: 2;
}

.hero-contacto h1 {
    font-size: 48px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-contacto p {
    font-size: 20px;
    opacity: 0.95;
}

/* Contacto Principal */
.contacto-principal-section {
    padding: 80px 0;
    background: white;
}

.contacto-principal-section .contacto-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

/* Formulario */
.contacto-principal-section .formulario-contacto {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contacto-principal-section .form-header {
    margin-bottom: 35px;
}

.contacto-principal-section .form-header h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contacto-principal-section .form-header p {
    color: var(--text-light);
    font-size: 16px;
}

.contacto-principal-section .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contacto-principal-section .form-group {
    margin-bottom: 25px;
}

.contacto-principal-section .form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.contacto-principal-section .form-group label i {
    color: var(--primary-color);
    margin-right: 8px;
}

.contacto-principal-section .form-group input,
.contacto-principal-section .form-group select,
.contacto-principal-section .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: var(--white);
}

.contacto-principal-section .form-group input:focus,
.contacto-principal-section .form-group select:focus,
.contacto-principal-section .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(28, 58, 78, 0.1);
}

.contacto-principal-section .form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contacto-principal-section .char-count {
    display: block;
    text-align: right;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 5px;
}

.contacto-principal-section .checkbox-group {
    margin-bottom: 30px;
}

.contacto-principal-section .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
}

.contacto-principal-section .checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    cursor: pointer;
}

.contacto-principal-section .btn-enviar {
    width: 100%;
    background: linear-gradient(135deg, #1C3A4E 0%, #009E5E 100%);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contacto-principal-section .btn-enviar:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(28, 58, 78, 0.3);
}

.contacto-principal-section .mensaje-exito {
    margin-top: 25px;
    background: #009E5E;
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    animation: contacto-slideDown 0.5s ease;
}

.contacto-principal-section .mensaje-exito i {
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
}

@keyframes contacto-slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Informaci¨®n de Contacto */
.contacto-principal-section .info-contacto {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contacto-principal-section .info-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.contacto-principal-section .info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.contacto-principal-section .info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1C3A4E 0%, #009E5E 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.contacto-principal-section .info-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.contacto-principal-section .info-card p {
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 5px;
}

.contacto-principal-section .info-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contacto-principal-section .info-card a:hover {
    color: var(--secondary-color);
}

.contacto-principal-section .redes-sociales {
    background: linear-gradient(135deg, #F7A600 0%, #F26522 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.contacto-principal-section .redes-sociales h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 20px;
}

.contacto-principal-section .social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.contacto-principal-section .social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contacto-principal-section .social-btn.facebook { background: #1877f2; }
.contacto-principal-section .social-btn.instagram { background: #E4405F; }
.contacto-principal-section .social-btn.twitter { background: #1da1f2; }
.contacto-principal-section .social-btn.linkedin { background: #0077b5; }

.contacto-principal-section .social-btn:hover {
    transform: scale(1.15);
}

/* Mapa */
.mapa-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.mapa-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.mapa-section .section-header h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.mapa-section .underline {
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.mapa-section .section-header p {
    color: var(--text-light);
    font-size: 17px;
}

.mapa-section .mapa-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* FAQ */
.faq-section {
    padding: 80px 0;
    background: white;
}

.faq-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-section .section-header h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.faq-section .underline {
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.faq-section .faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 20px;
}

.faq-section .faq-item {
    background: var(--bg-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.faq-section .faq-question {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-section .faq-question:hover {
    background: rgba(28, 58, 78, 0.05);
}

.faq-section .faq-question h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin: 0;
    flex: 1;
    padding-right: 15px;
}

.faq-section .faq-question i {
    color: var(--accent-color);
    font-size: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-section .faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-section .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-section .faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 25px 25px;
}

.faq-section .faq-answer p {
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

/* CTA WhatsApp */
.cta-contacto-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.cta-contacto-section .cta-content {
    text-align: center;
    color: white;
}

.cta-contacto-section .cta-content i {
    font-size: 70px;
    margin-bottom: 25px;
    display: block;
}

.cta-contacto-section .cta-content h2 {
    font-size: 40px;
    margin-bottom: 15px;
}

.cta-contacto-section .cta-content p {
    font-size: 20px;
    margin-bottom: 35px;
    opacity: 0.95;
}

.cta-contacto-section .btn-whatsapp-grande {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: #25D366;
    padding: 20px 45px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cta-contacto-section .btn-whatsapp-grande:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .contacto-principal-section .contacto-grid {
        grid-template-columns: 1fr;
    }

    .contacto-principal-section .form-row {
        grid-template-columns: 1fr;
    }

    .faq-section .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-contacto h1 {
        font-size: 36px;
    }

    .contacto-principal-section .formulario-contacto {
        padding: 25px;
    }

    .cta-contacto-section .cta-content h2 {
        font-size: 28px;
    }

    .cta-contacto-section .cta-content p {
        font-size: 16px;
    }
}

/* Alertas flotantes */
.alerta {
    position: fixed;
    top: 20px;
    right: -400px;
    background: white;
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    max-width: 400px;
    transition: right 0.3s ease;
}

.alerta.mostrar {
    right: 20px;
}

.alerta i {
    font-size: 24px;
}

.alerta-error {
    border-left: 4px solid #e74c3c;
}

.alerta-error i {
    color: #e74c3c;
}

.alerta-success {
    border-left: 4px solid #27ae60;
}

.alerta-success i {
    color: #27ae60;
}

.alerta span {
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.4;
}
