/* public/css/contacto.css */

/* ======================================================== */
/* ==   HERO SECTION (Standard Brand Hero)               == */
/* ======================================================== */
.hero-contacto {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-bottom: -6rem; /* Overlap with grid */
    z-index: 1;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
}

.hero-overlay-gradient {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(
        135deg,
        hsla(260, 80%, 10%, 0.9) 0%,
        hsla(260, 80%, 18%, 0.7) 50%,
        hsla(190, 80%, 50%, 0.2) 100%
    );
    backdrop-filter: blur(2px);
    z-index: 1;
}

.hero-content h1 {
    font-family: var(--second-font, 'Lora', serif);
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* ======================================================== */
/* ==   AMBIENT LIGHTING & SECTION                       == */
/* ======================================================== */
.bento-section {
    position: relative;
    padding: 8rem 0 6rem;
    background: var(--body-bg-color);
    overflow: hidden;
}

.relative-z {
    position: relative;
    z-index: 10;
}

/* Glowing Orbs */
.ambient-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
    animation: floatGlow 12s infinite alternate ease-in-out;
}

.magenta-glow {
    background: var(--first-color);
    top: 5%;
    left: -15%;
}

.cyan-glow {
    background: var(--second-color, cyan);
    bottom: -10%;
    right: -15%;
    animation-direction: alternate-reverse;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

/* ======================================================== */
/* ==   SYMMETRICAL GRID LAYOUT (3 Columns)              == */
/* ======================================================== */
.contact-symmetrical-grid {
    display: grid;
    /* 1fr Left, 1.4fr Center (Map), 1fr Right */
    grid-template-columns: 1fr 1.4fr 1fr; 
    gap: 2rem;
    align-items: center; /* Vertically center the side columns relative to map */
}

.grid-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Responsive: Stack vertically on mobile/tablet */
@media (max-width: 1024px) {
    .contact-symmetrical-grid {
        grid-template-columns: 1fr; /* Single column stack */
        max-width: 600px; /* Limit width for aesthetic in stack mode */
        margin: 0 auto;
    }

    /* Reorder for Mobile: Map first or middle? User said stack naturally or specific.
       Default DOM order in new PHP is Left(Cards) -> Center(Map) -> Right(Cards).
       This works well: Contact Info -> Map -> More info. */
    
    .center-column {
        order: -1; /* Option: Move map to top on mobile? */
        /* Let's keep DOM order (Cards, Map, Cards) or make Map prominent?
           Let's strictly follow: Desktop 3 cols. Mobile Stack.
           I'll keep default stack order. If user wants specific reorder, I can add it. 
           But usually Map in middle breaks the flow of contact info. 
           Let's move Map to TOP on mobile for visual impact. */
        order: -1;
        margin-bottom: 2rem;
    }
}

/* ======================================================== */
/* ==   GLASS CARDS & MAP                                == */
/* ======================================================== */
.bento-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body.dark-theme .bento-card {
    background: rgba(20, 20, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.9);
}

/* --- INFO CARDS (Side Columns) --- */
.info-card {
    padding: 2rem;
    display: flex;
    align-items: center; /* Center icons with text */
    text-align: left;
    text-decoration: none;
    color: var(--text-color);
}

/* Card Content Layout */
.card-content {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
}

/* Icons */
.icon-orb {
    width: 55px;
    height: 55px;
    border-radius: 16px;
    background: var(--gradient-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.success-orb {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.info-card h3 {
    font-family: var(--second-font);
    font-size: 1.05rem;
    color: var(--text-color-light);
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.info-card p {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--title-color);
    line-height: 1.3;
}

.email-text {
    font-size: 0.9rem !important; /* Slightly smaller for long emails */
    word-break: break-word;
}

.sub-text {
    display: block;
    font-size: 0.8rem;
    color: var(--text-color-light);
    margin-top: 0.2rem;
}

.arrow-link {
    margin-left: auto; /* Push to right */
    color: var(--text-color-light);
    opacity: 0.5;
    transition: all 0.3s;
}

.info-card:hover .arrow-link {
    opacity: 1;
    transform: translate(3px, -3px);
    color: var(--first-color);
}

/* --- MAP CARD (Centerpiece) --- */
.map-card-central {
    height: 500px; /* Taller than generic cards */
    width: 100%;
    padding: 0;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15); /* Stronger shadow */
    z-index: 5; /* Sit clearly above */
}

@media (max-width: 1024px) {
    .map-card-central {
        height: 400px;
    }
}

.map-card-central iframe {
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0.95;
    border-radius: 24px;
}

/* Map Badge */
.map-badge-floating {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--title-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.map-badge-floating i {
    color: var(--first-color);
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}