/* === 1. Estilos Base y de Sección === */
.contact-section {
    padding: 2rem 0;
    position: relative;
    background-color: var(--wood-bg-light);
}

/* Textos y bordes (Clases de utilidad) */
.wood-text-dark { color: var(--wood-dark); }
.wood-text-medium { color: var(--wood-medium); }
.wood-text-accent { color: var(--wood-accent); }
.wood-border-bottom { 
    border-bottom: 2px solid var(--wood-light); 
    padding-bottom: 0.5rem;
}

.divider {
    height: 3px;
    width: 80px;
    background: var(--wood-accent);
    margin: 0 auto 1rem;
}

.contact-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #315b2f;
    background: rgba(75, 123, 59, 0.12);
    border: 1px solid rgba(75, 123, 59, 0.25);
}

.contact-title {
    max-width: 900px;
    margin-inline: auto;
    font-size: clamp(2rem, 4.4vw, 3.1rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: #2c261c;
}

.contact-title .text-gradient {
    color: #8a6620;
    font-weight: 800;
    background: linear-gradient(135deg, #7b5a1b 0%, #b78b2d 58%, #dec777 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-lead {
    max-width: 820px;
    margin-inline: auto;
    color: #4d4435;
    line-height: 1.75;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
}

.contact-intel-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
}

.contact-intel-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: #ffffff;
    color: #3d3528;
    border: 1px solid rgba(138, 102, 32, 0.25);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
    font-size: 0.82rem;
    font-weight: 600;
}

.contact-intel-tag i {
    color: #8a6620;
    font-size: 0.9rem;
}

/* === 2. Tarjetas === */
.contact-info-card,
.contact-form-card,
.map-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(184, 139, 74, 0.2);
    background-color: white;
}

.contact-form-card--premium {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fcfaf6 100%);
    border: 1px solid rgba(138, 102, 32, 0.2);
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}

.contact-form-card--premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(216,183,90,0.14), transparent 45%);
    pointer-events: none;
}

.contact-form-card--premium > * {
    position: relative;
    z-index: 1;
}

.form-intro {
    color: #5b4d3b;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.form-hint {
    color: #6f604b;
    font-size: 0.84rem;
}

.contact-info-card--premium {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fdfbf8 100%);
    border: 1px solid rgba(138, 102, 32, 0.22);
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}

.contact-info-card--premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(216,183,90,0.14), transparent 45%);
    pointer-events: none;
}

.contact-panel-kicker {
    position: relative;
    z-index: 1;
    align-items: center;
    padding: 0.32rem 0.75rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6f5220;
    background: rgba(216,183,90,0.14);
    border: 1px solid rgba(138,102,32,0.24);
}

.contact-item-card {
    position: relative;
    z-index: 1;
    padding: 0.75rem;
    border-radius: 0.9rem;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(138,102,32,0.12);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-item-card:hover {
    transform: translateY(-2px);
    border-color: rgba(138,102,32,0.24);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.contact-item-card .wood-text-medium {
    color: #5b4d3b !important;
    font-weight: 500;
}

/* Efectos hover solo en dispositivos con puntero fino (excluye táctiles) */
@media (hover: hover) and (pointer: fine) {
    .contact-info-card:hover,
    .contact-form-card:hover,
    .map-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    }
}

/* === 3. Iconos === */
.contact-icon {
    width: 36px;
    height: 36px;
    background: rgba(107, 142, 35, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-item-card .contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(216,183,90,0.2), rgba(216,183,90,0.05));
    border: 1px solid rgba(138,102,32,0.16);
}

.contact-link {
    color: #3d3528;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed rgba(138,102,32,0.3);
    transition: color 0.25s ease, border-color 0.25s ease;
}

.contact-link:hover {
    color: #8a6620;
    border-color: rgba(138,102,32,0.65);
}

.social-icon {
    width: 36px;
    height: 36px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}
.social-icon.facebook { background-color: #3b5998; }
.social-icon.instagram { background: linear-gradient(45deg, #405DE6, #833AB4, #C13584, #E1306C, #FD1D1D); }
.social-icon.whatsapp { background-color: #25D366; }
.social-icon.linkedin { background-color: #0077B5; }

.social-links-modern .social-icon:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 10px 18px rgba(0,0,0,0.16);
    filter: saturate(1.1);
}


/* === 4. Formulario === */
.btn-wood {
    background: linear-gradient(90deg, #2ebd59 0%, #1f9f46 100%);
    color: white;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    box-shadow: 0 10px 18px rgba(31,159,70,0.26);
}
.btn-wood:hover {
    background: linear-gradient(90deg, #25a650 0%, #1a893d 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 14px 22px rgba(31,159,70,0.32);
}

.wood-input {
    border-color: var(--wood-light);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.85rem;
    background: #fff;
}
.wood-input:focus {
    border-color: var(--wood-accent);
    box-shadow: 0 0 0 0.2rem rgba(107, 142, 35, 0.25);
}

.form-floating > label.wood-text-medium {
    color: #776850 !important;
    font-weight: 500;
}

/* [REGLA AÑADIDA] Estilo para textarea (reemplaza inline style) */
.form-floating textarea.wood-input {
    min-height: 150px; /* Usar min-height es más robusto que height */
}


/* === 5. Mapa === */

/* [REGLA AÑADIDA] Estilos para iframe (reemplaza inline style) */
.map-card iframe {
    border: 0;
    border-radius: 8px; /* Coincide con el border-radius del layout */
}

.map-card--premium {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fcfaf6 100%);
    border: 1px solid rgba(138, 102, 32, 0.2);
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}

.map-card--premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(216,183,90,0.14), transparent 45%);
    pointer-events: none;
}

.map-card--premium > * {
    position: relative;
    z-index: 1;
}

.map-title {
    margin-bottom: 0.35rem !important;
}

.map-subtitle {
    color: #5d503d;
    line-height: 1.65;
    font-size: 0.98rem;
}

.map-cta {
    align-self: flex-start;
    border: 1px solid rgba(138,102,32,0.28);
    color: #3d3528;
    background: rgba(255,255,255,0.88);
    border-radius: 0.75rem;
    font-weight: 600;
    padding: 0.55rem 0.95rem;
    transition: all 0.28s ease;
}

.map-cta:hover {
    color: #ffffff;
    background: linear-gradient(90deg, #8a6620 0%, #a17724 100%);
    border-color: #8a6620;
    transform: translateY(-1px);
}

.map-location-chip {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.75rem;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(138,102,32,0.16);
    color: #544735;
    font-size: 0.9rem;
    line-height: 1.55;
}

.map-location-chip i {
    color: #8a6620;
    margin-top: 0.1rem;
}

.map-frame-wrap {
    border-radius: 0.95rem;
    overflow: hidden;
    border: 1px solid rgba(138,102,32,0.12);
    box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}


/* === 6. Media Queries Consolidadas === */

/* [REFACTORIZACIÓN] 
   Eliminado el bloque @media (max-width: 767.98px). 
   Las reglas de padding (p-4, py-3) que usaban !important fueron reemplazadas 
   por clases de utilidad responsivas en el HTML (p-3 p-md-5, py-2 py-lg-3).
   Esto es mucho más limpio y sigue la metodología de Bootstrap. 
   Las reglas de tamaño de iconos que estaban aquí no son necesarias o pueden 
   ser manejadas por las clases fs-*. (Si se necesitaran, aquí irían).
*/

/* Optimización para Tablets */
@media (min-width: 768px) and (max-width: 991.98px) {
    .contact-section {
        padding: 3rem 0;
    }
    
    .divider {
        width: 100px;
        height: 4px;
    }
}

@media (max-width: 767.98px) {
    .contact-kicker {
        font-size: 0.72rem;
        padding: 0.3rem 0.65rem;
    }

    .contact-title {
        font-size: clamp(1.75rem, 8vw, 2.3rem);
    }

    .contact-intel-tags {
        justify-content: center;
    }

    .contact-intel-tag {
        font-size: 0.76rem;
        padding: 0.34rem 0.62rem;
    }

    .contact-item-card {
        padding: 0.65rem;
    }

    .contact-item-card .contact-icon {
        width: 40px;
        height: 40px;
    }

    .form-intro {
        font-size: 0.96rem;
    }

    .form-hint {
        font-size: 0.8rem;
    }

    .map-cta {
        width: 100%;
        justify-content: center;
    }

    .map-location-chip {
        font-size: 0.84rem;
    }
}