/* Se añaden variables compartidas con index/acercade para coherencia visual */
:root {
  --fnd-ink: #0b2540;
  --fnd-accent: #0b61a4;
  --fnd-accent-alt: #c62828;
  --fnd-soft: #f8fafc;
  --fnd-border: rgba(11, 38, 64, 0.06);
  --fnd-shadow: 0 12px 35px rgba(11, 38, 64, 0.1);
  --fnd-max: 1100px;

    --contact-primary: #0b5fa0;
    --contact-primary-600: #094e86;
    --contact-primary-400: #0e6fbf;
}

body {
    /* hereda la tipografía global definida en site.css */
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f8f9fa;
    color: #333;
}


section {
    max-inline-size: 920px; /* ligeramente más ancho para balance con imágenes y formulario */
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    text-align: justify;
}

/* Centrar el título principal de la sección de contacto */
section > h3 { text-align: center; }

/* Estilos de párrafo consistentes con acercade.html */
section p {
    font-size: 1.02rem;
    line-height: 1.75;
    opacity: 0.85;
    margin: 16px 0;
}

/* Asegura que cualquier imagen en la sección sea responsive y no genere overflow */
section img {
    display: block;
    inline-size: 100%;
    block-size: auto;
}

.card {
    font-family: inherit;
    max-inline-size: 100%;
    padding: 20px;
    border: 8px solid #22314a;
    border-radius: 20px;
    margin: 20px 0;
    background-color: #22314a;
    color: rgb(167, 47, 47);
}


.map-container {
    padding: 0;
    border: none;
    overflow: hidden; /* evita que el mapa se salga en móviles */
    border-radius: 12px;
}

/* Iframe Waze responsive */
#mapid {
    margin-top: 28px; /* antes 75px, ahora más compacto y coherente con spacing del sitio */
    inline-size: 100%;
    max-inline-size: 100%;
    display: block;
    block-size: clamp(300px, 60vh, 495px); /* alto adaptable según pantalla */
    margin-block-end: 20px;
    border-radius: 12px;
    box-sizing: border-box;
}

/* Contenedor para acciones del mapa (botón) */
.map-actions {
    margin-block-start: 12px;
    text-align: center;
}

/* Botón Waze destacado con animación */
.btn-waze {
    --c1: #1cb0f6;
    --c2: #0077cc;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 0.3px;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 18px rgba(0, 153, 255, 0.35);
    transform: translateY(0);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    animation: waze-pulse 2.2s ease-in-out infinite;
}

.btn-waze:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 26px rgba(0, 153, 255, 0.45);
    filter: brightness(1.03);
}

.btn-waze:active {
    transform: translateY(0) scale(0.99);
    box-shadow: 0 6px 16px rgba(0, 153, 255, 0.35);
}

@keyframes waze-pulse {
    0%, 100% { box-shadow: 0 8px 18px rgba(0, 153, 255, 0.30); }
    50% { box-shadow: 0 14px 28px rgba(0, 153, 255, 0.50); }
}

/* Títulos coherentes con index/acercade */
.fnd-title {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  color: var(--fnd-ink);
  margin: 0 0 14px 0;
  position: relative;
  font-weight: 400; /* normal (sin negrita) */
  letter-spacing: -0.4px;
}

/* Línea decorativa bajo títulos (misma estética que el resto del sitio) */
.fnd-title::after {
  content: "";
  display: block;
  height: 5px;
  width: 100px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--fnd-accent) 0%, #ffffff 50%, var(--fnd-accent-alt) 100%);
  border-radius: 6px;
}

/* Variante de título centrado con tamaño mayor (para banners) */
.acercade-title-center {
  text-align: center;
  margin: 32px auto 12px;
  font-size: clamp(2rem, 3vw, 2.4rem);
  color: var(--fnd-ink);
  font-weight: 400;
  letter-spacing: -0.6px;
}

/* Ajustes responsive para la raya decorativa */
@media (max-width: 480px) {
  .fnd-title::after { height: 4px; width: 88px; margin-top: 8px; }
  .acercade-title-center { font-size: clamp(1.6rem, 5vw, 2rem); }
}

/* Aplicar visual consistente a los títulos de la página de contacto */
/* h2.ban (banners) -> usar estilo centrado grande con línea decorativa centrada */
h2.ban {
  background: transparent;
  padding: 0;
  margin: 28px auto 48px auto;
  text-align: center;
  font-family: inherit;
  color: var(--fnd-ink);
  font-weight: 400;
  letter-spacing: -0.6px;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  display: block;
  position: relative;
  padding-bottom: 20px;
}

/* Línea decorativa CENTRADA bajo el título completo */
h2.ban::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  height: 5px;
  width: 100px;
  background: linear-gradient(90deg, var(--fnd-accent) 0%, #ffffff 50%, var(--fnd-accent-alt) 100%);
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(11,38,64,0.06);
}

/* Ocultar decoración en elementos internos para evitar duplicados */
h2.ban > span::after,
h2.ban .start-word::after,
section > h3::before { 
  display: none !important; 
}

/* Asegurar que el span dentro sea inline */
h2.ban > span {
  display: inline;
  color: var(--fnd-ink);
  font-weight: 400;
}

/* La clase start-word solo sirve para resaltar, sin línea propia */
.start-word {
  display: inline;
  font-weight: 400;
}

/* Sección h3 principal -> usar .fnd-title para coherencia */
section > h3 {
  /* override del rule anterior que centraba; ahora mantiene el look global */
  text-align: center;
  margin-top: 6px;
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  color: var(--fnd-ink);
  font-weight: 400;
  position: relative;
  letter-spacing: -0.3px;
  display: inline-block;          /* para que la pseudo línea se posicione relativa al texto */
  padding-inline-start: 6px;
}

/* línea decorativa bajo h3, alineada al inicio del texto */
section > h3::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  height: 5px;
  inline-size: 84px;
  background: linear-gradient(90deg, var(--fnd-accent) 0%, #ffffff 50%, var(--fnd-accent-alt) 100%);
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(11,38,64,0.06);
}

/* Ocultar otras rayas decorativas para evitar duplicados */
section > h3::after {
  display: none !important;
}

/* Ajustes responsive: reducir grosor/anchura de la línea en móviles */
@media (max-width: 576px) {
  h2.ban::after {
    width: 72px;
    height: 4px;
  }
  section > h3::before {
    inline-size: 68px;
    height: 4px;
    bottom: -8px;
  }
}

/* Estilos para los botones de navegación - Nuevo diseño con logos */
.map-navigation-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 20px;
    justify-content: center;
}

.map-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.map-btn::before {
    content: '';
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 50%;
    inline-size: 0;
    block-size: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.3);
    transform: translate(-50%, -50%);
    transition: width .6s, height .6s;
}

.map-btn:hover::before {
    inline-size: 300px;
    block-size: 300px;
}

.map-btn svg,
.map-btn-logo {
    flex-shrink: 0;
    transition: transform .3s ease;
}

.map-btn-logo {
    inline-size: 24px;
    block-size: 24px;
    object-fit: contain;
}

.map-btn:hover svg,
.map-btn:hover .map-btn-logo {
    transform: scale(1.2) rotate(5deg);
}

.waze-btn {
    background: linear-gradient(135deg, #33ccff 0%, #00adef 100%);
    color: white;
    border: none;
}

.waze-btn:hover {
    background: linear-gradient(135deg, #00adef 0%, #0099d6 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 173, 239, .4);
}

.gmaps-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #202124;
    border: 2px solid #dadce0;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.gmaps-btn:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8eaed 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(66, 133, 244, .3);
    border-color: #4285f4;
}

.map-btn span {
    position: relative;
    z-index: 1;
}

/* Responsive para botones de navegación */
@media (max-width: 768px) {
    .map-navigation-buttons {
        flex-direction: column;
    }
    .map-btn {
        inline-size: 100%;
    }
}

@media (max-width: 576px) {
    .map-btn {
        font-size: 0.95rem;
        padding: 12px 16px;
    }
}

/* Ajustes móviles */
@media (max-width: 576px) {
    /* Mantener justificado SOLO en párrafos en móvil (no headings) */
    section p,
    section li { text-align: justify; hyphens: auto; overflow-wrap: anywhere; }
    section h1, section h2, section h3, section h4, section h5, section h6 { text-align: start; }
    #mapid {
        block-size: min(70vh, 520px);
    }
    .btn-waze {
        inline-size: 100%;
        font-size: 1.1rem;
        padding: 16px 26px;
        border-radius: 14px;
    }
    body { overflow-x: hidden; }
}


/* Estilos específicos del formulario - rediseño con #0b5fa0 */
.contact-form {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(11,95,160,0.10), 0 2px 10px rgba(0,0,0,.05);
    border: 2px solid var(--contact-primary);
    color: #2b3b3f;
}

.contact-form label {
    font-weight: 400;
    color: var(--contact-primary);
    margin-block-end: 8px;
    display: block;
    letter-spacing: .2px;
}

.contact-form .form-control {
    border: 2px solid color-mix(in srgb, var(--contact-primary) 35%, #b7c9d8);
    border-radius: 12px;
    padding: 12px 14px;
    margin-block-end: 18px;
    background: #fdfefe;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.contact-form .form-control::placeholder { color: #8aa3b7; opacity: .9; }
.contact-form .form-control:focus, .contact-form .form-control:focus-visible {
    outline: none;
    border-color: var(--contact-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--contact-primary) 22%, transparent);
    background: #fff;
}

.submit-btn {
    background: var(--contact-primary);
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    inline-size: 100%;
    font-weight: 800;
    letter-spacing: .3px;
    text-transform: uppercase;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    display: block;
    margin-inline: auto;
    box-shadow: 0 8px 18px rgba(11,95,160,.25);
}

.submit-btn:hover {
    background: var(--contact-primary-600);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(11,95,160,.35);
}

/* ========================================
   SECCIÓN DE REDES SOCIALES
   ======================================== */

.social-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e9f0f5 100%);
    padding: 60px 20px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.social-section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(11,97,164,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.social-section::after {
    content: "";
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(198,40,40,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.social-title {
    text-align: center;
    margin: 0 auto 20px;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: var(--fnd-ink);
    font-weight: 400;
    letter-spacing: -0.6px;
    position: relative;
    padding-bottom: 20px;
}

.social-title::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    height: 5px;
    width: 120px;
    background: linear-gradient(90deg, var(--fnd-accent) 0%, #ffffff 50%, var(--fnd-accent-alt) 100%);
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(11,38,64,0.06);
}

.social-title > span {
    display: inline;
    color: var(--fnd-ink);
    font-weight: 400;
}

.social-description {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    color: var(--fnd-muted);
    line-height: 1.6;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: #ffffff;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.social-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.social-card:hover::before {
    left: 100%;
}

.social-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.social-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.social-icon svg {
    width: 32px;
    height: 32px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-card:hover .social-icon {
    transform: rotate(360deg) scale(1.1);
}

.social-card:hover .social-icon svg {
    transform: scale(1.15);
}

.social-info {
    flex: 1;
}

.social-info h3 {
    margin: 0 0 6px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--fnd-ink);
    transition: color 0.3s ease;
}

.social-info p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--fnd-muted);
    transition: color 0.3s ease;
}

/* Estilos específicos para cada red social */

.social-card.facebook:hover {
    border-color: #1877f2;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
}

.social-card.facebook .social-icon {
    background: linear-gradient(135deg, #1877f2 0%, #0c63d4 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(24,119,242,0.3);
}

.social-card.facebook:hover .social-info h3 {
    color: #1877f2;
}

.social-card.instagram:hover {
    border-color: #e4405f;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f7 100%);
}

.social-card.instagram .social-icon {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(228,64,95,0.3);
}

.social-card.instagram:hover .social-info h3 {
    color: #e4405f;
}

.social-card.gmail:hover {
    border-color: #ea4335;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
}

.social-card.gmail .social-icon {
    background: linear-gradient(135deg, #ea4335 0%, #c5221f 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(234,67,53,0.3);
}

.social-card.gmail:hover .social-info h3 {
    color: #ea4335;
}

.social-card.youtube:hover {
    border-color: #ff0000;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
}

.social-card.youtube .social-icon {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255,0,0,0.3);
}

.social-card.youtube:hover .social-info h3 {
    color: #ff0000;
}

.social-card.whatsapp:hover {
    border-color: #25d366;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.social-card.whatsapp .social-icon {
    background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37,211,102,0.3);
}

.social-card.whatsapp:hover .social-info h3 {
    color: #25d366;
}

.social-card.tiktok:hover {
    border-color: #000000;
    background: linear-gradient(135deg, #ffffff 0%, #fff0f5 100%);
}

.social-card.tiktok .social-icon {
    background: linear-gradient(135deg, #000000 0%, #ff0050 50%, #00f2ea 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0,242,234,0.4);
}

.social-card.tiktok:hover .social-info h3 {
    color: #000000;
}

/* Animación de entrada escalonada */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-card {
    animation: slideInUp 0.6s ease-out backwards;
}

.social-card:nth-child(1) { animation-delay: 0.1s; }
.social-card:nth-child(2) { animation-delay: 0.2s; }
.social-card:nth-child(3) { animation-delay: 0.3s; }
.social-card:nth-child(4) { animation-delay: 0.4s; }
.social-card:nth-child(5) { animation-delay: 0.5s; }
.social-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive */
@media (max-width: 768px) {
    .social-section {
        padding: 40px 15px;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .social-card {
        padding: 20px;
    }
    
    .social-icon {
        width: 50px;
        height: 50px;
    }
    
    .social-icon svg {
        width: 26px;
        height: 26px;
    }
    
    .social-title::after {
        width: 90px;
    }
}

@media (max-width: 576px) {
    .social-description {
        font-size: 1rem;
        margin-bottom: 35px;
    }
    
    .social-info h3 {
        font-size: 1.1rem;
    }
    
    .social-info p {
        font-size: 0.9rem;
    }
}

