/* Variables de Tema */
:root {
    --primary-color: #1a3a5f;
    --secondary-color: #e9b44c;
    --accent-color: #2a628f;
    --light-color: #f8f9fa;
    --dark-color: #16262e;
    --text-color: #333;
    --card-bg: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    
    /* Variables para modo claro/oscuro */
    --contact-bg-start: #e9b44c;
    --contact-bg-end: #e9b54ce3;
    --contact-text: white;
    --contact-card-bg: rgba(255, 255, 255, 0.1);
    --contact-card-border: rgba(255, 255, 255, 0.15);
    --contact-form-bg: rgba(255, 255, 255, 0.1);
    --contact-form-border: rgba(255, 255, 255, 0.2);
    --contact-form-placeholder: rgba(255, 255, 255, 0.6);
    --contact-footer-border: rgba(255, 255, 255, 0.2);
}

/* Modo Claro */
.light-mode {
    --contact-bg-start: #f5f7fa;
    --contact-bg-end: #e4e8f0;
    --contact-text: #333;
    --contact-card-bg: rgba(255, 255, 255, 0.8);
    --contact-card-border: rgba(0, 0, 0, 0.1);
    --contact-form-bg: rgba(255, 255, 255, 0.9);
    --contact-form-border: rgba(0, 0, 0, 0.15);
    --contact-form-placeholder: rgba(0, 0, 0, 0.6);
    --contact-footer-border: rgba(0, 0, 0, 0.1);
}

/* Estilos Generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f7fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Sección de Contacto */
.contact-section {
    background: linear-gradient(135deg, var(--contact-bg-start) 0%, var(--contact-bg-end) 100%);
    color: var(--contact-text);
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><polygon points="0,100 100,0 100,100" fill="rgba(233,180,76,0.1)"/></svg>');
    background-size: cover;
    opacity: 0.3;
}

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

.contact-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 15px;
    color: #1a3a5f;
    position: relative;
}

.contact-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 15px auto 25px;
    border-radius: 2px;
}

.contact-subtitle {
    text-align: center;
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--contact-text);
    opacity: 0.9;
    padding: 0 15px;
}

.contact-content {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.contact-form-container {
    width: 100%;
    max-width: 800px;
}

.contact-card {
    background: var(--contact-card-bg);
    border-radius: var(--border-radius);
    padding: 40px;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    border: 1px solid var(--contact-card-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.contact-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #1a3a5f;
    position: relative;
    padding-bottom: 15px;
}

.contact-card h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.contact-card p {
    color: var(--contact-text);
    opacity: 0.85;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

/* Formulario */
.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--contact-text);
    font-size: 1.05rem;
}

.contact-form .form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--contact-form-border);
    border-radius: var(--border-radius);
    background: var(--contact-form-bg);
    color: var(--contact-text);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(233, 180, 76, 0.2);
}

.contact-form .form-control::placeholder {
    color: var(--contact-form-placeholder);
}

.contact-form textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-submit-btn {
    background: #1a3a5f;
    color: #fff;
    font-weight: 600;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    margin-top: 10px;
}

.form-submit-btn:hover {
    background: #2a628f;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(233, 180, 76, 0.3);
}

/* Contact Footer */
.contact-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 30px 0;
    border-top: 1px solid var(--contact-footer-border);
    margin-top: 30px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--contact-text);
    font-size: 1.1rem;
}

.contact-detail i {
    color: #1a3a5f;
    font-size: 1.4rem;
}

.contact-detail a {
    color: var(--contact-text);
    text-decoration: none;
    transition: var(--transition);
}

.contact-detail a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Footer */
.main-footer {
    background: var(--dark-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-logo h3 span {
    color: var(--secondary-color);
}

.footer-logo p {
    max-width: 300px;
    line-height: 1.7;
    font-size: 1.05rem;
}

.footer-links {
    flex: 1;
    min-width: 150px;
}

.footer-links h4 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.05rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    flex-direction: column;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.4rem;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--secondary-color);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.95rem;
}

/* Estilos para el popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-container {
    transform: translateY(0);
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--dark-color);
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.popup-close:hover {
    color: var(--accent-color);
    background: rgba(0, 0, 0, 0.05);
}

.popup-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.popup-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.popup-subtitle {
    color: var(--text-color);
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.1rem;
}

.popup-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.popup-option {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid rgba(26, 58, 95, 0.1);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.popup-option:hover {
    border-color: var(--secondary-color);
    background: rgba(233, 180, 76, 0.05);
    transform: translateY(-3px);
}

.popup-option.selected {
    border-color: var(--secondary-color);
    background: rgba(233, 180, 76, 0.1);
}

.popup-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 58, 95, 0.1);
    border-radius: 50%;
    margin-right: 20px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.popup-option.whatsapp .popup-icon {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
}

.popup-option.email .popup-icon {
    background: rgba(42, 98, 143, 0.1);
    color: var(--accent-color);
}

.popup-option-content {
    flex: 1;
}

.popup-option-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.popup-option-description {
    color: var(--text-color);
    font-size: 0.95rem;
}

.popup-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.popup-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Toggle Modo Claro/Oscuro */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 10px;
    display: flex;
    gap: 5px;
}

.theme-btn {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.theme-btn.active {
    background: var(--secondary-color);
}

.theme-btn i {
    font-size: 1.2rem;
    color: var(--text-color);
}

/* Mensajes de error */
.error-message {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.form-group.error .form-control {
    border-color: #ff6b6b;
}

.form-group.error .error-message {
    display: block;
}

/* Responsive */
@media (max-width: 992px) {
    .contact-card {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 60px 0 30px;
    }
    
    .contact-title {
        font-size: 1.8rem;
    }
    
    .contact-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .contact-footer {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-logo, .footer-links {
        text-align: center;
    }
    
    .footer-logo p {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .footer-links h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    .contact-title {
        font-size: 1.6rem;
    }
    
    .contact-card {
        padding: 25px;
    }
    
    .popup-container {
        padding: 30px 20px;
    }
    
    .popup-option {
        padding: 15px;
    }
    
    .popup-icon {
        margin-right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}


/* Sección de contacto */
body.dark .contact-section {
    background: linear-gradient(135deg, #2e2e2e, #3a3a3a) !important;
}

/* Tarjeta de contacto */
body.dark .contact-card {
    background: rgba(46, 46, 46, 0.9) !important;
}







/* Añadir al final del archivo */
body.dark .footer-links a {
    color: #e0e0e0 !important;
}

body.dark .social-icons a {
    background: rgba(255, 255, 255, 0.1);
}

body.dark .footer-logo h3 {
    color: #e9b44c;
}

body.dark .footer-logo h3 span {
    color: #6ba3d8;
}














body.dark-mode .footer-links a {
    color: #e0e0e0 !important;
}

body.dark-mode .social-icons a {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .footer-logo h3 {
    color: #6ba3d8;
}

body.dark-mode .footer-logo h3 span {
    color: #e9b44c;
}