/* ==========================================
   CONTACTE PAGE - NEW DESIGN
   Focus: Calendari de reunions + UX divertida
========================================== */

/* HERO SECTION */
.contact-hero {
    background: linear-gradient(135deg, var(--color-principal) 0%, var(--color-secundari) 100%);
    padding: 180px 2rem 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    animation: floatBubble 15s ease-in-out infinite;
}

.contact-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(230, 126, 34, 0.1) 0%, transparent 70%);
    animation: floatBubble 20s ease-in-out infinite reverse;
}

@keyframes floatBubble {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-40px, -40px); }
}

/* Floating elements */
.floating-contact {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.12;
    animation: floatElement 8s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

.floating-contact:nth-child(1) { top: 20%; left: 8%; animation-delay: 0s; animation-duration: 7s; }
.floating-contact:nth-child(2) { top: 25%; right: 12%; animation-delay: 2s; animation-duration: 9s; }
.floating-contact:nth-child(3) { bottom: 30%; left: 15%; animation-delay: 4s; animation-duration: 6s; }
.floating-contact:nth-child(4) { bottom: 25%; right: 8%; animation-delay: 1s; animation-duration: 8s; }

@keyframes floatElement {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(10deg); }
}

.contact-hero-content {
    position: relative;
    z-index: 2;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.contact-hero-content h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    color: var(--color-white);
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-coffee {
    display: inline-block;
    animation: coffeeWiggle 3s ease-in-out infinite;
}

@keyframes coffeeWiggle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-12deg) scale(1.1); }
    75% { transform: rotate(12deg) scale(1.1); }
}

.contact-hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.hero-scroll-hint {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-scroll-hint:hover {
    color: var(--color-white);
}

.scroll-arrow {
    font-size: 1.5rem;
    animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* CONTAINER */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* SECTION HEADERS */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--color-principal);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-secundari);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================
   WHY MEET SECTION
========================================== */
.contact-why {
    background: var(--color-white);
    padding: 5rem 0 4rem;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.why-card {
    background: var(--color-white);
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(135, 169, 107, 0.15);
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--color-accent);
}

.why-card:hover .why-icon {
    transform: scale(1.2);
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    transition: transform 0.3s ease;
}

.why-card h3 {
    font-size: 1.15rem;
    color: var(--color-principal);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.why-card p {
    color: var(--color-secundari);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* ==========================================
   CALENDAR SECTION
========================================== */
.contact-calendar {
    background: linear-gradient(135deg, rgba(135, 169, 107, 0.05) 0%, rgba(52, 152, 219, 0.05) 100%);
    padding: 5rem 0;
}

.calendar-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    min-height: 650px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(135, 169, 107, 0.2);
    background: var(--color-white);
}

.calendar-wrapper #my-cal-inline-30min {
    width: 100%;
    height: 100%;
    min-height: 650px;
    overflow: auto;
}

/* ==========================================
   CONTACT INFO SECTION
========================================== */
.contact-info-section {
    background: var(--color-white);
    padding: 4rem 0 5rem;
}

.contact-info-section .info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info-section .info-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    background: rgba(135, 169, 107, 0.05);
    border: 1px solid rgba(135, 169, 107, 0.15);
    transition: all 0.3s ease;
}

.contact-info-section .info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--color-accent);
}

.info-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.contact-info-section .info-card h3 {
    font-size: 1.1rem;
    color: var(--color-principal);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.contact-info-section .info-card a,
.contact-info-section .info-card span {
    color: var(--color-secundari);
    text-decoration: none;
    line-height: 1.6;
    font-size: 0.95rem;
}

.contact-info-section .info-card a:hover {
    color: var(--color-accent);
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 968px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-info-section .info-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 150px 1.5rem 80px;
    }

    .floating-contact {
        display: none;
    }

    .calendar-wrapper {
        border-radius: 12px;
        min-height: 500px;
    }

    .calendar-wrapper #my-cal-inline-30min {
        min-height: 500px;
    }

    .contact-why {
        margin-top: -30px;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 130px 1rem 60px;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .contact-calendar,
    .contact-why,
    .contact-info-section {
        padding: 3rem 0;
    }

    .why-card {
        padding: 2rem 1.5rem;
    }

    .calendar-wrapper {
        min-height: 450px;
    }

    .calendar-wrapper #my-cal-inline-30min {
        min-height: 450px;
    }
}
