/* ============================================
   SECCIÓN DE CONTACTO — MOBILE FIXED
   Optimizado para Redmi 11 (720×1600px)
   ============================================ */

#contacto {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    padding: 4rem 2rem 6rem 2rem;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

.contacto-header {
    text-align: center;
    margin-bottom: 3rem;
    width: 100%;
}

/* ============================================
   WRAPPER DE DOS COLUMNAS
   ============================================ */

.contacto-wrapper {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 3rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    align-items: start;
    box-sizing: border-box;
}

/* ============================================
   COLUMNA IZQUIERDA - INFORMACIÓN
   ============================================ */

.contacto-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    min-width: 0;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #FFD700;
    flex-wrap: wrap;
}

.info-header i {
    font-size: 2rem;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
}

.info-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #1a1a1a;
    font-weight: 700;
    margin: 0;
    word-break: break-word;
}

/* ============================================
   TARJETAS DE CONTACTO
   ============================================ */

.contacto-cards {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
}

.contacto-card {
    background: white;
    padding: 1.5rem;
    border-radius: 18px;
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    width: 100%;
    box-sizing: border-box;
}

.contacto-card:hover {
    transform: translateX(5px);
    border-color: #FFD700;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.2);
}

.contacto-icon {
    width: 55px;
    height: 55px;
    min-width: 55px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contacto-icon i {
    font-size: 1.5rem;
    color: #000;
}

.contacto-details {
    flex: 1;
    min-width: 0; /* Evita desbordamiento de texto en flex */
}

.contacto-details h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-weight: 600;
    word-break: break-word;
}

.contacto-details p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
    word-break: break-word;
    overflow-wrap: break-word;
    text-align: justify; /* ← AGREGAR */
}
.contacto-details a {
    color: #1a1a1a;  /* ← Negro */
    text-decoration: none;
    font-weight: 600; /* ← Un poco más grueso para que resalte */
    transition: all 0.3s ease;
    word-break: break-all;
}

.contacto-details a:hover {
    color: #FFA500;  /* ← Al pasar el mouse, dorado */
    text-decoration: underline;
}

.subtitle-text {
    font-size: 0.85rem;
    color: #999;
}

.contacto-details strong {
    color: #333;
    font-weight: 600;
}

/* ============================================
   REDES SOCIALES
   ============================================ */

.contacto-social {
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    padding: 2rem;
    border-radius: 20px;
    color: white;
    width: 100%;
    box-sizing: border-box;
}

.contacto-social h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #FFD700;
    text-align: center;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
    width: 100%;
    box-sizing: border-box;
    min-height: 52px; /* Área táctil */
    text-align: center;
}

.social-btn i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.social-btn.whatsapp  { background: linear-gradient(135deg, #25D366, #128C7E); }
.social-btn.facebook  { background: linear-gradient(135deg, #1877F2, #0C63D4); }
.social-btn.instagram { background: linear-gradient(135deg, #E4405F, #C13584); }

.social-btn.whatsapp:hover  { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5); }
.social-btn.facebook:hover  { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(24, 119, 242, 0.5); }
.social-btn.instagram:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(228, 64, 95, 0.5); }

/* ============================================
   COLUMNA DERECHA - MAPA Y UBICACIÓN
   ============================================ */

.contacto-map-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    min-width: 0;
}

.map-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #FFD700;
    flex-wrap: wrap;
}

.map-header i {
    font-size: 2rem;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
}

.map-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #1a1a1a;
    font-weight: 700;
    margin: 0;
    word-break: break-word;
}

/* ============================================
   MAPA
   ============================================ */

.map-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #000 50%, #1a1a1a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 2rem;
    box-sizing: border-box;
}

.map-placeholder i {
    font-size: 5rem;
    color: #FFD700;
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-20px); }
}

.map-placeholder h4 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #FFD700;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.map-placeholder p {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.6;
    word-break: break-word;
}

/* ============================================
   INFORMACIÓN DE UBICACIÓN
   ============================================ */

.location-info {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    width: 100%;
    box-sizing: border-box;
}

.location-card {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.location-card i {
    font-size: 2rem;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
}

.location-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-weight: 600;
    word-break: break-word;
}

.location-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    word-break: break-word;
    overflow-wrap: break-word;
    text-align: justify; /* ← AGREGAR */
}
/* Feature Badges */
.location-features {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    background: #f8f9fa;
    border-radius: 25px;
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
}

.feature-badge i {
    color: #FFD700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Botón de Direcciones */
.btn-directions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
    box-sizing: border-box;
    min-height: 54px;
    text-align: center;
    flex-wrap: wrap;
}

.btn-directions:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.5);
}

.btn-directions i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.btn-directions .fa-external-link-alt {
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE — TABLET GRANDE (≤ 1200px)
   ============================================ */

@media (max-width: 1200px) {
    .contacto-wrapper {
        grid-template-columns: 400px 1fr;
        gap: 2.5rem;
    }
}

/* ============================================
   RESPONSIVE — TABLET (≤ 992px)
   Colapsa a 1 columna, mapa arriba
   ============================================ */

@media (max-width: 992px) {
    .contacto-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contacto-info-section { order: 2; }
    .contacto-map-section  { order: 1; }
}

/* ============================================
   RESPONSIVE — MÓVIL (≤ 768px)
   ============================================ */

@media (max-width: 768px) {
    #contacto {
        padding: 4rem 1.2rem 5rem;
    }

    .contacto-header {
        margin-bottom: 2.5rem;
    }

    /* Headers centrados */
    .info-header,
    .map-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.6rem;
    }

    .info-header h3,
    .map-header h3 {
        font-size: 1.5rem;
    }

    /* Tarjetas: layout horizontal mantenido, centrado */
    .contacto-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.4rem 1.2rem;
    }

    .contacto-details p,
    .contacto-details h4 {
        text-align: center;
    }

    .contacto-icon {
        width: 56px;
        height: 56px;
        min-width: 56px;
    }

    .map-container {
        height: 320px;
        border-radius: 16px;
    }

    .map-placeholder i     { font-size: 4rem; }
    .map-placeholder h4    { font-size: 1.6rem; }
    .map-placeholder p     { font-size: 1rem; }

    /* Ubicación: centrada */
    .location-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .location-card h4,
    .location-card p {
        text-align: center;
    }

    .location-features {
        justify-content: center;
    }
}

/* ============================================
   RESPONSIVE — REDMI 11 y similares (≤ 720px)
   Pantalla: 720 × 1600 px
   ============================================ */

@media (max-width: 720px) {
    #contacto {
        padding: 3rem 1rem 4rem;
    }

    .contacto-header {
        margin-bottom: 2rem;
    }

    .contacto-wrapper {
        gap: 2rem;
    }

    /* Headers */
    .info-header,
    .map-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
        padding-bottom: 0.8rem;
    }

    .info-header i,
    .map-header i {
        font-size: 1.7rem;
    }

    .info-header h3,
    .map-header h3 {
        font-size: 1.4rem;
    }

    /* Cards de contacto — completamente centradas */
    .contacto-cards {
        gap: 1rem;
    }

    .contacto-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.2rem 1rem;
        border-radius: 14px;
        gap: 0.9rem;
    }

    .contacto-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .contacto-icon i {
        font-size: 1.3rem;
    }

    .contacto-details h4 {
        font-size: 1.05rem;
        margin-bottom: 0.4rem;
    }

    .contacto-details p {
    text-align: justify; /* ← en vez de center */
    }

    /* Redes sociales */
    .contacto-social {
        padding: 1.5rem 1.2rem;
        border-radius: 16px;
    }

    .contacto-social h4 {
        font-size: 1.15rem;
        margin-bottom: 1.2rem;
    }

    .social-buttons {
        gap: 0.8rem;
    }

    .social-btn {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
        border-radius: 10px;
        gap: 0.8rem;
    }

    .social-btn i {
        font-size: 1.3rem;
    }

    /* Mapa */
    .map-container {
        height: 280px;
        border-radius: 14px;
    }

    .map-placeholder {
        padding: 1.5rem 1rem;
    }

    .map-placeholder i  { font-size: 3.5rem; margin-bottom: 1rem; }
    .map-placeholder h4 { font-size: 1.4rem; }
    .map-placeholder p  { font-size: 0.9rem; }

    /* Ubicación */
    .location-info {
        padding: 1.5rem 1.2rem;
        border-radius: 16px;
    }

    .location-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.8rem;
        margin-bottom: 1.4rem;
    }

    .location-card i  { font-size: 1.7rem; }
    .location-card h4 { font-size: 1.05rem; }
    .location-card p  { font-size: 0.88rem; }

    .location-features {
        gap: 0.6rem;
        margin-bottom: 1.5rem;
        justify-content: center;
    }

    .feature-badge {
        padding: 0.6rem 1rem;
        font-size: 0.82rem;
        border-radius: 20px;
    }

    .btn-directions {
        padding: 1rem 1.4rem;
        font-size: 0.92rem;
        border-radius: 40px;
        gap: 0.7rem;
        min-height: 50px;
    }
}

/* ============================================
   RESPONSIVE — MÓVIL PEQUEÑO (≤ 480px)
   ============================================ */

@media (max-width: 480px) {
    #contacto {
        padding: 2.8rem 0.9rem 3.5rem;
    }

    .contacto-social {
        padding: 1.3rem 1rem;
    }

    .social-btn {
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
    }

    .map-container {
        height: 250px;
    }

    .location-info {
        padding: 1.3rem 1rem;
    }

    .btn-directions {
        padding: 0.9rem 1.2rem;
        font-size: 0.88rem;
    }

    .feature-badge {
        font-size: 0.8rem;
        padding: 0.55rem 0.9rem;
    }
}

/* ============================================
   RESPONSIVE — MUY PEQUEÑO (≤ 360px)
   ============================================ */

@media (max-width: 360px) {
    #contacto {
        padding: 2.5rem 0.8rem 3rem;
    }

    .info-header h3,
    .map-header h3 {
        font-size: 1.2rem;
    }

    .contacto-card {
        padding: 1rem 0.9rem;
    }

    .contacto-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .contacto-icon i { font-size: 1.1rem; }

    .contacto-details h4 { font-size: 0.95rem; }
    .contacto-details p  { font-size: 0.83rem; }

    .map-container { height: 220px; }

    .map-placeholder i  { font-size: 3rem; }
    .map-placeholder h4 { font-size: 1.2rem; }
    .map-placeholder p  { font-size: 0.85rem; }

    .social-btn { font-size: 0.85rem; padding: 0.8rem; gap: 0.6rem; }
    .social-btn i { font-size: 1.1rem; }

    .btn-directions { font-size: 0.83rem; padding: 0.85rem 1rem; }

    .feature-badge { font-size: 0.75rem; padding: 0.5rem 0.8rem; }
}