:root {
    --primary-blue: #003366;
    --primary-teal: #14b8a6;
    --secondary-teal: #0d9488;
    --light-bg: #f9fafb;
    --text-gray: #666;
    --white: #ffffff;
}

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

.contacto-main {
    background-color: var(--white);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 500px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-teal) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(20, 184, 166, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(13, 148, 136, 0.2) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="white" opacity="0.05"/></svg>');
    background-size: 60px 60px;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 80px 24px;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge-icon {
    width: 18px;
    height: 18px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -2px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.95;
    line-height: 1.8;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    margin-top: 48px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--white) 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.stat-divider {
    width: 2px;
    height: 60px;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 100px;
}

/* Contacto Rápido */
.contacto-rapido-section {
    padding: 0 0 80px;
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.contacto-rapido-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.contacto-rapido-card {
    background: var(--white);
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.contacto-rapido-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-teal) 0%, var(--secondary-teal) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.contacto-rapido-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-teal);
}

.contacto-rapido-card:hover::before {
    transform: scaleX(1);
}

.card-icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--secondary-teal) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.3);
    transition: transform 0.4s ease;
}

.contacto-rapido-card:hover .card-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.card-icon {
    width: 32px;
    height: 32px;
    stroke: var(--white);
}

.card-content {
    flex: 1;
}

.card-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.card-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Formulario Section */
.formulario-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.formulario-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
}

.formulario-wrapper {
    background: var(--white);
    padding: 48px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.mensaje-exito {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--secondary-teal) 100%);
    color: var(--white);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 32px;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mensaje-exito svg {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
    stroke-width: 2;
}

.mensaje-exito h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.formulario-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 3px solid var(--light-bg);
}

.formulario-titulo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.formulario-descripcion {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input,
.form-select,
.form-textarea {
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--primary-blue);
    background-color: var(--white);
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
}

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

.btn-enviar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-teal) 100%);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 51, 102, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-enviar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-enviar:hover::before {
    width: 300px;
    height: 300px;
}

.btn-enviar:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 51, 102, 0.4);
}

.btn-enviar svg {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.btn-enviar:hover svg {
    transform: translateX(5px);
}

.btn-enviar span {
    position: relative;
    z-index: 1;
}

/* Info Sidebar */
.info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    background: var(--white);
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--primary-teal);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.info-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--light-bg);
}

.info-card p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 16px;
}

.estado-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--secondary-teal) 100%);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.estado-dot {
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.oficina-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--light-bg);
}

.oficina-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.oficina-item h4 {
    color: var(--primary-blue);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.oficina-item p {
    color: var(--text-gray);
    font-size: 0.9375rem;
    margin-bottom: 8px;
}

.mapa-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.mapa-wrapper iframe {
    display: block;
    border-radius: 16px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-teal) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="white" opacity="0.05"/></svg>');
    background-size: 50px 50px;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
    color: var(--white);
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 48px;
    background: var(--white);
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.btn-cta:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.3);
}

.btn-cta svg {
    width: 24px;
    height: 24px;
}

/* Responsive */
@media (max-width: 1024px) {
    .formulario-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 32px;
    }

    .stat-divider {
        width: 60px;
        height: 2px;
    }

    .contacto-rapido-grid {
        grid-template-columns: 1fr;
    }

    .formulario-wrapper {
        padding: 32px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .formulario-titulo {
        font-size: 1.5rem;
    }

    .contacto-rapido-card {
        padding: 24px;
    }

    .card-icon-wrapper {
        width: 56px;
        height: 56px;
    }

    .card-icon {
        width: 28px;
        height: 28px;
    }
}