.contact-page {
    background: black;
    color: white;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animations for grid items */
.values-grid .animate-on-scroll,
.team-grid .animate-on-scroll,
.stats-container .animate-on-scroll {
    transition-delay: calc(var(--item-index) * 0.1s);
}

.contact-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('../images/banner_transparente.png');
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -3px;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

.hero-subtitle {
    color: #666;
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 350;
    letter-spacing: -0.5px;
    margin-bottom: 3rem;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.7s;
}

.contact-form-section {
    padding: 8rem 4rem;
    background: white;
    color: black;
}

.form-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.form-header {
    margin-bottom: 4rem;
}

.form-header h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -3px;
}

.form-header p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 350;
    letter-spacing: -0.5px;
    margin-bottom: 3rem;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 0;
    font-size: 1rem;
    border: none;
    border-bottom: 1px solid #ddd;
    background: transparent;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    height: 100px;
    resize: none;
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    font-size: 1rem;
    color: #666;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: black;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label {
    top: -20px;
    font-size: 0.8rem;
    color: black;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: black;
    color: white;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: translateX(10px);
}

.arrow-icon {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2;
    fill: none;
}

.contact-info {
    padding-top: 4rem;
}

.info-item {
    margin-bottom: 3rem;
}

.info-item a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}
.info-item a:hover {
    text-decoration: underline;
}

.info-item h3 {
    font-size: 1rem;
    color: #000;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.info-item p {
    font-size: 1rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 10px;
}
.social-links a {
    color: #555;
    font-size: 24px;
    transition: color 0.3s;
}
.social-links a:hover {
    color: #000;
}

.map-section {
    height: 600px;
    background: #f5f5f5;
}

#map {
    width: 100%;
    height: 100%;
}

@media (max-width: 1200px) {
    .form-container {
        grid-template-columns: 1fr;
    }

    .contact-info {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .info-item {
        margin-bottom: 2rem;
    }
}