/* Estilos Finales Compactos y Elegantes */
.contact-page {
    padding-top: 0;
    font-family: 'Montserrat', sans-serif;
}

/* Hero Compacto */
.contact-hero {
    position: relative;
    height: 70vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    background: url('../img/Contacto.webp') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
  }

  .contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
  }

  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
  }

  .hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.8rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  }

/* Estilos para la nueva sección de contacto */
.elegant-contact-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}

.contact-info-container {
    height: 100%;
    display: flex;
}

.contact-info-card {
    background: white;
    border-radius: 12px;
    padding: 40px; /* Reducir padding en móviles */
    width: 100%;
    max-width: 100%; /* Evitar desbordamiento horizontal */
    box-shadow: 0 5px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Opcional: Usar 'auto' si prefieres scroll */
}

.contact-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: #2a2a2a;
    margin-bottom: 40px;
    position: relative;
}

.title-underline {
    position: relative;
}

.title-underline::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #0d6efd;
}

.contact-method {
    display: flex;
    gap: 15px; /* Reducir espacio entre icono y texto */
    margin-bottom: 20px;
    align-items: flex-start;
    flex-wrap: wrap; /* Permitir que el texto baje si no cabe */
}

.contact-icon {
    font-size: 1.4rem;
    color: #0d6efd;
    margin-top: 3px;
}

.contact-method-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2a2a2a;
    margin-bottom: 5px;
}

.contact-method-detail {
    color: #555;
    line-height: 1.5; /* Mejor legibilidad */
    margin: 0;
    word-break: break-word; /* Romper palabras largas */
}

.contact-method a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-method a:hover {
    color: #0d6efd;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: white !important;
    padding: 12px 20px; /* Padding más pequeño en móviles */
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 20px;
    transition: all 0.3s;
    gap: 8px;
    font-size: 0.9rem; /* Tamaño de fuente reducido */
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    width: 100%; /* Ocupar todo el ancho disponible */
    text-align: center;
}

.whatsapp-button:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(18, 140, 126, 0.4);
}

.contact-map-container {
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.05);
}

.map-wrapper {
    position: relative;
    padding-bottom: 100%; /* Relación de aspecto 1:1 */
    height: 0;
    overflow: hidden;
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info-card {
        padding: 40px;
    }
    
    .map-wrapper {
        padding-bottom: 75%; /* Relación de aspecto 4:3 en tablet */
    }

    .contact-hero {
        height: 60vh;
        min-height: 500px;
      }
      
      .hero-title {
        font-size: 3rem;
      }
      
      .hero-subtitle {
        font-size: 1.5rem;
      }
}

@media (max-width: 768px) {
    .contact-hero {
        height: 50vh;
        min-height: 400px;
      }
      
      .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
      }
      
      .hero-subtitle {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
      }

    .elegant-contact-section {
        padding: 60px 0;
    }
    
    .contact-info-card {
        padding: 30px;
    }
    
    .contact-section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .contact-method {
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .whatsapp-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .contact-hero {
        height: 45vh;
        min-height: 350px;
      }
      
      .hero-title {
        font-size: 2rem;
      }
      
      .hero-subtitle {
        font-size: 1.1rem;
      }

      .contact-info-card {
        padding: 25px 20px; /* Padding más ajustado */
    }

    .contact-method {
        gap: 10px;
        margin-bottom: 15px;
    }

    .contact-icon {
        font-size: 1.2rem; /* Iconos más pequeños */
    }

    .contact-method-title {
        font-size: 1rem; /* Títulos más compactos */
    }

    .contact-method-detail {
        font-size: 0.9rem; /* Texto más pequeño */
    }
    
    .map-wrapper {
        padding-bottom: 100%; /* Cuadrado en móviles */
    }
}