/* Estilos clásicos para la página de Contacto */

/* Hero Section */
.contact-hero {
    background: url('../img/contact-hero.jpg') no-repeat center center;
    background-size: cover;
    padding: 4rem 0;
    position: relative;
    text-align: center;
    color: var(--light-text);
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.contact-hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.contact-hero h1 {
    font-size: 2.5rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.contact-hero p {
    font-size: 1.1rem;
    margin-bottom: 0;
    line-height: 1.7;
}

/* Info Cards Section */
.contact-info {
    padding: 5rem 0;
    background-color: #fff;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--secondary-color);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.info-icon {
    margin-bottom: 1.5rem;
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.info-icon i {
    font-size: 1.8rem;
    color: var(--light-text);
}

.info-card h3 {
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.info-card p {
    margin-bottom: 0.75rem;
    color: var(--text-color);
    line-height: 1.6;
}

.info-card p:last-of-type {
    margin-bottom: 1.5rem;
}

.info-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    transition: color 0.3s ease;
}

.info-link i {
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

.info-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.info-card a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-card a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Form Section */
.contact-form {
    padding: 5rem 0;
    background-color: var(--light-bg);
    position: relative;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://placehold.co/1200x800/darkblue/white?text=FONDO+TEXTURA');
    background-repeat: repeat;
    opacity: 0.05;
}

.form-container {
    position: relative;
    background-color: #fff;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 3rem auto 0;
}

.form-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--light-bg);
    color: var(--text-color);
    font-family: var(--font-family-serif);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(153, 0, 0, 0.1);
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-group input {
    width: auto;
    margin-top: 0.25rem;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.95rem;
}

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.form-submit button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.form-submit button i {
    margin-left: 0.75rem;
}

/* Map Section */
.map-section {
    padding: 5rem 0;
    background-color: #fff;
}

.map-container {
    margin-top: 3rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 450px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

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

.accordion {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    background-color: #fff;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: rgba(0, 51, 102, 0.05);
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.accordion-icon {
    color: var(--secondary-color);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon i {
    transform: rotate(45deg);
}

.accordion-content {
    background-color: #fff;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
    padding: 1.5rem;
    max-height: 500px;
}

.accordion-content p {
    margin: 0;
    line-height: 1.7;
}

/* Newsletter Section */
.newsletter {
    padding: 4rem 0;
    background-color: var(--primary-color);
    color: var(--light-text);
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.newsletter-text {
    flex: 1;
}

.newsletter-text h2 {
    color: var(--light-text);
    margin-bottom: 1rem;
}

.newsletter-text p {
    margin-bottom: 0;
    opacity: 0.9;
}

.newsletter-form {
    flex: 1;
}

.newsletter-form .form-group {
    display: flex;
    margin-bottom: 0;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-family: var(--font-family-serif);
}

.newsletter-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 1rem 1.5rem;
    background-color: var(--secondary-color);
    color: var(--light-text);
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #800000;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-show {
    opacity: 1;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background-color: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    text-align: center;
    transition: transform 0.3s ease;
}

.modal-show .modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--secondary-color);
}

.modal-content h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.modal-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .form-container {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .info-cards {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .modal-content {
        width: 95%;
        padding: 2rem;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .modal-buttons button {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: var(--border-radius);
        margin-bottom: 1rem;
    }
    
    .newsletter-form button {
        border-radius: var(--border-radius);
        width: 100%;
    }
} 