:root {
    --primary-color: #333333;
    --secondary-color: #666666;
    --text-color: #333333;
    --background-color: #ffffff;
    --input-border: #e0e0e0;
    --button-color: #040f8a;
    --button-hover: #030b5c;
    --card-bg: #f8f9fa;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Header Styles */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    z-index: 1000;
    background-color: rgb(0, 0, 0);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav img {
    height: 30px;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    justify-content: flex-end;
    grid-column: 3;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav {
        padding: 15px 20px;
    }

    .menu-toggle {
        display: flex;
        grid-column: 3;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: black;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.3s ease;
        padding: 80px 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 18px;
    }
}

main {
    margin-top: 80px;
    flex: 1;
    padding: 2rem 0;
    background-color: #fafafa;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-container h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 1rem;
    align-items: start;
    flex: 1;
    overflow: hidden;
}

.contact-form-section {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--primary-color);
    background-color: white;
    transition: var(--transition);
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--button-color);
    box-shadow: 0 0 0 3px rgba(4, 15, 138, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-footer {
    margin-top: 1rem;
}

.submit-btn {
    width: 100%;
    background-color: var(--button-color);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    background-color: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(4, 15, 138, 0.2);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    height: 100%;
}

.contact-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.contact-card i {
    font-size: 1.5rem;
    color: var(--button-color);
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-card p {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-card a {
    color: var(--button-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 1rem;
    display: inline-block;
    margin-top: 0.5rem;
}

.contact-card a:hover {
    opacity: 0.8;
}

.whatsapp-section {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    height: 100%;
}

.whatsapp-card,
.facebook-card,
.instagram-card {
    padding: 0.8rem;
    border-radius: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    color: white;
    height: calc((100% - 1.6rem) / 3); /* Divide el espacio disponible entre 3 tarjetas */
}

.whatsapp-card {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.facebook-card {
    background: linear-gradient(135deg, #1877F2 0%, #0D47A1 100%);
}

.instagram-card {
    background: linear-gradient(135deg, #E1306C 0%, #833AB4 100%);
}

.whatsapp-card i,
.facebook-card i,
.instagram-card i {
    font-size: 1.2rem;
    color: white;
    margin-right: 0.8rem;
}

.whatsapp-card h3,
.facebook-card h3,
.instagram-card h3 {
    font-size: 0.85rem;
    color: white;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.whatsapp-card p,
.facebook-card p,
.instagram-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-size: 0.75rem;
}

.whatsapp-link,
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    color: white !important;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.75rem;
}

.whatsapp-link:hover,
.social-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.whatsapp-link i,
.social-link i {
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container, .contact-container {
        padding: 0 1rem;
    }
    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 0.7rem;
    }
}
@media (max-width: 900px) {
    .contact-header h1 {
        font-size: 2rem;
    }
    .contact-subtitle {
        font-size: 1rem;
    }
    .contact-content {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .contact-form-section, .contact-info, .whatsapp-section {
        padding: 0.5rem;
    }
}
@media (max-width: 768px) {
    .container, .contact-container {
        padding: 0 0.5rem;
    }
    .contact-header {
        margin-bottom: 2rem;
    }
    .contact-header h1 {
        font-size: 1.5rem;
    }
    .contact-subtitle {
        font-size: 0.95rem;
    }
    .contact-content {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }
    .contact-form-section, .contact-info, .whatsapp-section {
        padding: 0.2rem;
    }
    .submit-btn {
        font-size: 0.95rem;
        padding: 0.8rem;
    }
}
@media (max-width: 576px) {
    .contact-header {
        margin-bottom: 1.2rem;
        padding: 0.5rem 0;
    }
    .contact-header h1 {
        font-size: 1.1rem;
    }
    .contact-subtitle {
        font-size: 0.9rem;
    }
    .contact-container {
        padding: 0.2rem;
    }
    .contact-form-section, .contact-info, .whatsapp-section {
        padding: 0.1rem;
    }
    .submit-btn {
        font-size: 0.9rem;
        padding: 0.7rem;
    }
    .footer-content {
        gap: 0.7rem;
    }
}
@media (max-width: 400px) {
    .contact-header h1 {
        font-size: 0.95rem;
    }
    .contact-subtitle {
        font-size: 0.8rem;
    }
    .submit-btn {
        font-size: 0.85rem;
        padding: 0.6rem;
    }
}

/* Footer */
footer {
    background-color: var(--light-bg);
    color: var(--primary-color);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-info {
        text-align: center;
    }
}