/* Hero Section */
.contact-hero {
    padding: 150px 5% 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contact-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 25px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.contact-hero h1 span {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-hero p {
    font-size: 1.25rem;
    color: var(--text-gray);
    opacity: 0;
    animation: fadeInUp 1s ease 0.2s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Interactive Map Section */
.map-section {
    padding: 80px 5%;
    position: relative;
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.5), rgba(30, 58, 95, 0.3));
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.map-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Spain Map Visualization */
.spain-map {
    position: relative;
    height: 500px;
    background: rgba(30, 58, 95, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
}

.map-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20 40 Q 30 30, 50 35 T 80 40 L 75 60 L 50 65 L 25 60 Z" fill="%2300d4ff" opacity="0.2"/></svg>') center/contain no-repeat;
}

.location-pin {
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--accent-cyan);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    animation: pin-drop 1s ease-out;
    cursor: pointer;
    transition: all 0.3s ease;
}

.location-pin::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-dark);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.location-pin:hover {
    transform: rotate(-45deg) scale(1.2);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.5);
}

@keyframes pin-drop {
    0% {
        transform: translateY(-100px) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: translateY(10px) rotate(-45deg);
    }
    100% {
        transform: translateY(0) rotate(-45deg);
        opacity: 1;
    }
}

.location-pin.barcelona {
    top: 30%;
    right: 25%;
    animation-delay: 0.2s;
}

.location-pin.madrid {
    top: 40%;
    left: 45%;
    animation-delay: 0.4s;
}

.location-pin.valencia {
    top: 45%;
    right: 30%;
    animation-delay: 0.6s;
}

.location-tooltip {
    position: absolute;
    background: rgba(10, 22, 40, 0.95);
    border: 1px solid var(--accent-cyan);
    border-radius: 10px;
    padding: 10px 15px;
    color: var(--text-light);
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.location-pin:hover + .location-tooltip {
    opacity: 1;
}

/* Office Info */
.office-info {
    display: grid;
    gap: 30px;
}

.office-card {
    background: rgba(30, 58, 95, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    opacity: 0;
    animation: slideIn 0.8s ease forwards;
}

.office-card:nth-child(1) { animation-delay: 0.1s; }
.office-card:nth-child(2) { animation-delay: 0.2s; }
.office-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.office-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.2);
    background: rgba(30, 58, 95, 0.3);
}

.office-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.office-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.office-title h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.office-status {
    font-size: 0.9rem;
    color: var(--accent-cyan);
}

.office-details {
    display: grid;
    gap: 12px;
    color: var(--text-gray);
}

.office-detail {
    display: flex;
    align-items: center;
    gap: 10px;
}

.office-detail span:first-child {
    color: var(--accent-cyan);
}

/* Contact Form Section */
.form-section {
    padding: 100px 5%;
    background: rgba(10, 22, 40, 0.6);
}

.form-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
   /* grid-template-columns: 1fr 1fr;*/
    justify-content: center;
    gap: 60px;
    align-items: start;
}
/*
.contact-form {
    background: rgba(30, 58, 95, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 25px;
    padding: 40px;
    backdrop-filter: blur(10px);

}*/

.form-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: 500;
    font-size: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(10, 22, 40, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    background: rgba(10, 22, 40, 0.8);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
    color: var(--primary-dark);
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:hover::before {
    width: 600px;
    height: 600px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.3);
}

/* Quick Contact */
.quick-contact {
    background: rgba(30, 58, 95, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 25px;
    padding: 40px;
}

.quick-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(10, 22, 40, 0.4);
    border-radius: 15px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-method:hover {
    background: rgba(10, 22, 40, 0.6);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.method-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 168, 204, 0.2));
    border: 2px solid var(--accent-cyan);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.method-info h4 {
    margin-bottom: 5px;
    color: var(--text-light);
}

.method-info p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.method-info a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

.method-info a:hover {
    color: var(--accent-teal);
}

/* Response Time Visualization */
.response-section {
    padding: 80px 5%;
    background: linear-gradient(180deg, rgba(30, 58, 95, 0.3), rgba(10, 22, 40, 0.5));
}

.response-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 50px;
    font-weight: 700;
}

.response-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.response-card {
    background: rgba(30, 58, 95, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 20px;
    padding: 35px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.response-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-teal));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.response-card:hover::before {
    transform: scaleX(1);
}

.response-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.2);
}

.response-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

.response-card:nth-child(1) .response-icon { animation-delay: 0s; }
.response-card:nth-child(2) .response-icon { animation-delay: 0.5s; }
.response-card:nth-child(3) .response-icon { animation-delay: 1s; }

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

.response-time {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.response-label {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* FAQ Section */
.faq-section {
    padding: 100px 5%;
    background: rgba(10, 22, 40, 0.5);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(30, 58, 95, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(0, 212, 255, 0.05);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-arrow {
    font-size: 20px;
    color: var(--accent-cyan);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer-content {
    padding: 0 25px 25px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* Footer */
footer {
    padding: 60px 5% 40px;
    background: rgba(10, 22, 40, 0.9);
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 24px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-brand h3::before {
    content: '💧';
    margin-right: 10px;
}

.footer-brand p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: var(--text-light);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    color: var(--text-gray);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .map-container {
        grid-template-columns: 1fr;
    }

    .form-container {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }
}
