/*
 * Contacto Page Styles
 * Estilos para la página de contacto
 */

/* ============================================
   PAGE HERO
   ============================================ */

.page-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.03) 10px,
        rgba(255, 255, 255, 0.03) 20px
    );
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 1rem;
    position: relative;
    animation: fadeInUp 0.6s ease;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    position: relative;
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

/* ============================================
   CONTACTO WRAPPER
   ============================================ */

.contacto-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    padding: 4rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   FORMULARIO
   ============================================ */

.contacto-form-section {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: fadeInLeft 0.6s ease;
}

.form-header {
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 2rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--color-text-light);
    font-size: 1rem;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(230, 50, 44, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    margin-top: 1rem;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
}

.btn-submit .btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 500;
    text-align: center;
    animation: slideDown 0.3s ease;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================
   INFORMACIÓN DE CONTACTO
   ============================================ */

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeInRight 0.6s ease;
}

.info-card {
    background: white;
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 1.25rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.info-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.info-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0 0 0.5rem;
}

.info-content p {
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.6;
}

.info-content a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.info-content a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* Horarios */
.horarios-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.horarios-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-light);
}

.horarios-list li:last-child {
    border-bottom: none;
}

.horarios-list strong {
    color: var(--color-dark);
    font-weight: 600;
}

/* WhatsApp CTA */
.whatsapp-cta {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-cta h3 {
    font-size: 1.3rem;
    margin: 0 0 0.5rem;
}

.whatsapp-cta p {
    margin: 0 0 1.5rem;
    opacity: 0.95;
}

.btn-whatsapp {
    background: white;
    color: #25D366;
    padding: 0.875rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    color: #128C7E;
}

/* Redes Sociales */
.social-links {
    flex-direction: column;
}

.social-links h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0 0 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 45px;
    height: 45px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 16px rgba(230, 50, 44, 0.4);
    background: var(--color-primary-dark);
}

/* ============================================
   MAPA
   ============================================ */

.mapa-section {
    margin-top: 3rem;
}

.mapa-container {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.mapa-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.mapa-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mapa-info {
    text-align: center;
    color: white;
    padding: 2rem;
}

.mapa-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.mapa-info p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

/* ============================================
   ANIMACIONES
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
    .contacto-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contacto-info {
        order: 2;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 60px 0 40px;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .contacto-form-section {
        padding: 1.5rem;
    }

    .form-header h2 {
        font-size: 1.6rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .info-card {
        padding: 1.5rem;
    }

    .mapa-container {
        height: 350px;
    }

    .mapa-info h3 {
        font-size: 1.5rem;
    }

    .mapa-info p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.8rem;
    }

    .contacto-form-section {
        padding: 1.25rem;
    }

    .info-icon {
        width: 40px;
        height: 40px;
    }

    .social-icons {
        justify-content: center;
    }
}
