/* Variables Base */
:root {
    --primary: #6b21a8;
    --secondary: #9333ea;
    --dark: #111827;
    --light: #f3f4f6;
    --white: #ffffff;
    --text-muted: #4b5563;
    --accent-light: #f5f3ff;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* Navegación */
header {
    background-color: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--dark);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 6rem 5% 8rem 5%;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: #e5e7eb;
}

/* Botón base */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid var(--primary);
    font-size: 1rem;
}

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

/* Contenedor de Contacto */
.contact-section {
    padding: 4rem 5%;
    max-width: 1100px;
    margin: -4rem auto 4rem auto;
    position: relative;
    z-index: 10;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 0;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Panel Izquierdo: Información */
.contact-info-panel {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 3.5rem 3rem;
}

.contact-info-panel h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.contact-info-panel p {
    color: #e5e7eb;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

.contact-info-list {
    list-style: none;
}

.contact-info-list li {
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    flex-shrink: 0;
}

.info-text strong {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #cbd5e1;
    margin-bottom: 3px;
}

.info-text a, .info-text span {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Panel Derecho: Formulario */
.contact-form-panel {
    padding: 3.5rem 3rem;
    background: var(--white);
}

.contact-form-panel h3 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 2rem;
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--dark);
    background-color: #f8fafc;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(107, 33, 168, 0.1);
}

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

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b21a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.btn-submit {
    width: 100%;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 2.5rem 5%;
    margin-top: 2rem;
}

/* Responsivo */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 5%;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding: 4rem 5%;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .contact-info-panel, .contact-form-panel {
        padding: 2.5rem 1.5rem;
    }
    
    .contact-section {
        margin-top: 0;
    }
}
