/* Estilos específicos para la página de contacto */
.contact-hero {
    min-height: 90vh;
    background: linear-gradient(135deg, #0000e7 0%, #1a1a2e 50%, #0f3460 100%);
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(233, 69, 96, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(15, 52, 96, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.contact-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.contact-hero-text {
    flex: 1;
    max-width: 600px;
}

.contact-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ffffff, #e0e0ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contact-title .highlight {
    color: var(--accent-color);
    background: none;
}

.contact-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.contact-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(214, 0, 0, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-hero-visual {
    flex: 1;
    position: relative;
    height: 400px;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgb(139, 10, 10);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.element-1 {
    background: linear-gradient(135deg, var(--accent-color), #ff7b9c);
    top: 20%;
    left: 20%;
    animation: float 6s ease-in-out infinite;
}

.element-2 {
    background: linear-gradient(135deg, var(--secondary-color), #1a5ba0);
    top: 50%;
    right: 20%;
    animation: float 5s ease-in-out infinite 0.5s;
}

.element-3 {
    background: linear-gradient(135deg, #6a0dad, var(--accent-color));
    bottom: 20%;
    left: 40%;
    animation: float 7s ease-in-out infinite 1s;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(140, 12, 12, 0.7);
    font-size: 0.9rem;
}

.scroll-down .mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.scroll-down .wheel {
    width: 4px;
    height: 10px;
    background-color: var(--accent-color);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

/* Formulario de Contacto */
.contact-form-section {
    padding: 100px 0;
    background-color: var(--dark-color);
}

.contact-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.form-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.form-intro p {
    color: rgba(201, 6, 6, 0.8);
    line-height: 1.6;
    margin-bottom: 40px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), #ff7b9c);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: white;
}

.info-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.info-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: gap 0.3s;
}

.info-link:hover {
    gap: 12px;
}

/* Estilos del formulario */
.contact-form-container {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 30px;
}

.form-group.dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
}

.input-wrapper input,
.input-wrapper textarea,
.input-wrapper select {
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    color: white;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all 0.3s;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus,
.input-wrapper select:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), #ff7b9c);
    transition: width 0.3s;
}

.input-wrapper input:focus + .input-border,
.input-wrapper textarea:focus + .input-border,
.input-wrapper select:focus + .input-border {
    width: 100%;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input {
    margin-top: 5px;
}

.checkbox-group label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-group a {
    color: var(--accent-color);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(90deg, var(--accent-color), #ff7b9c);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 18px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-submit .btn-text,
.btn-submit .btn-loading,
.btn-submit .btn-success {
    display: block;
    transition: opacity 0.3s, transform 0.3s;
}

.btn-submit .btn-loading,
.btn-submit .btn-success {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.btn-submit.sending .btn-text {
    opacity: 0;
    transform: translateY(-20px);
}

.btn-submit.sending .btn-loading {
    opacity: 1;
}

.btn-submit.success .btn-text {
    opacity: 0;
}

.btn-submit.success .btn-success {
    opacity: 1;
}

.btn-submit:hover:not(.sending):not(.success) {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(233, 69, 96, 0.3);
}

/* Mapa y Ubicación */
.map-section {
    padding: 80px 0;
    background-color: var(--dark-color);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: rgb(124, 21, 21);
    margin-bottom: 15px;
}

.section-header p {
    color: rgba(190, 10, 10, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.map-placeholder {
    display: grid;
    grid-template-columns: 2fr 1fr;
    background: var(--primary-color);
}

.map-visual {
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.interactive-map {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.map-info {
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.map-info h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 25px;
}

.map-details p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.map-details i {
    color: var(--accent-color);
    margin-top: 3px;
    min-width: 20px;
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background-color: var(--dark-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question span {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.faq-question i {
    color: var(--accent-color);
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.faq-item.active .faq-answer {
    padding: 20px 25px;
    max-height: 500px;
}

.faq-answer p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* CTA Final */
.contact-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(233, 69, 96, 0.1), transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-cta-primary,
.btn-cta-secondary {
    padding: 15px 35px;
    border-radius: 50px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-cta-primary {
    background: linear-gradient(90deg, var(--accent-color), #ff7b9c);
    color: white;
    border: none;
    box-shadow: 0 10px 20px rgba(233, 69, 96, 0.3);
}

.btn-cta-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(233, 69, 96, 0.4);
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

/* Arrow para volver al inicio */
.back-to-home {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #ff7b9c);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(233, 69, 96, 0.4);
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px);
}

.back-to-home.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.back-to-home:hover {
    transform: translateX(0) scale(1.1);
    box-shadow: 0 15px 30px rgba(233, 69, 96, 0.5);
}

.back-to-home .tooltip {
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    pointer-events: none;
}

.back-to-home:hover .tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* Responsive */
@media (max-width: 1200px) {
    .contact-hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-hero-text {
        max-width: 100%;
    }
    
    .contact-stats {
        justify-content: center;
    }
    
    .contact-form-wrapper {
        grid-template-columns: 1fr;
    }
    
    .map-placeholder {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 120px 0 80px;
    }
    
    .contact-title {
        font-size: 2.8rem;
    }
    
    .contact-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .form-group.dual {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .back-to-home {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .back-to-home .tooltip {
        display: none;
    }
}

@media (max-width: 576px) {
    .contact-title {
        font-size: 2.2rem;
    }
    
    .contact-subtitle {
        font-size: 1.1rem;
    }
    
    .contact-form-container {
        padding: 25px;
    }
    
    .info-card {
        padding: 20px;
    }
}