:root {
    --primary-red: #C41E3A;
    --primary-red-dark: #a01830;
    --primary-red-light: #e8354f;
    --dark-blue: #1a2332;
    --darker-blue: #0f1520;
    --text-dark: #333;
    --text-gray: #666;
    --text-light: #999;
    --white: #fff;
    --light-bg: #f8f9fa;
    --border-color: #e9ecef;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-hover: 0 15px 50px rgba(0,0,0,0.2);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--white);
}

/* ========== UTILITIES ========== */
.section-subtitle {
    display: inline-block;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.section-subtitle.light {
    color: rgba(255,255,255,0.7);
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 42px;
    font-weight: 500;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--dark-blue);
    margin-bottom: 20px;
}

.section-title.light {
    color: var(--white);
}

.title-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-red-light));
    margin: 0 auto 40px;
    border-radius: 2px;
}

.title-divider.light {
    background: linear-gradient(90deg, var(--primary-red), rgba(255,255,255,0.5));
    margin: 0 0 40px;
}

/* ========== HEADER ========== */
.main-header {
    background: var(--dark-blue);
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.main-header.scrolled {
    padding: 8px 0;
    background: rgba(26, 35, 50, 0.98);
    backdrop-filter: blur(10px);
}

.logo-img {
    height: 70px;
    width: auto;
    transition: height var(--transition-normal);
}

.main-header.scrolled .logo-img {
    height: 55px;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 18px !important;
    position: relative;
    transition: all var(--transition-normal);
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--primary-red);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    transform: scaleX(1);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-red) !important;
}

.navbar-toggler {
    border: 2px solid rgba(255,255,255,0.3);
    padding: 8px 12px;
    transition: all var(--transition-normal);
}

.navbar-toggler:hover {
    border-color: var(--primary-red);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    /* background: url('/assets/images/hero-section-containers.avif') center/cover no-repeat; */
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 21, 32, 0.9) 0%,
        rgba(26, 35, 50, 0.7) 50%,
        rgba(196, 30, 58, 0.3) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-logo-img {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
    animation: fadeInDown 1s ease;
}

.hero h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 56px;
    font-weight: 500;
    letter-spacing: 12px;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 4px 20px rgba(0,0,0,0.4);
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-tagline {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease 0.5s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-red);
    border-radius: 50%;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { top: 8px; opacity: 1; }
    50% { top: 25px; opacity: 0.3; }
}

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

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

/* ========== SERVICIOS SECTION ========== */
.servicios {
    padding: 120px 0;
    background: var(--light-bg);
    position: relative;
}

.servicios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-red), var(--dark-blue), var(--primary-red));
}

.servicio-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.servicio-card.featured {
    border: 2px solid var(--primary-red);
}

.servicio-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-red);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 3;
}

.servicio-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 3;
    transition: all var(--transition-normal);
}

.servicio-icon i {
    font-size: 26px;
    color: var(--primary-red);
    transition: all var(--transition-normal);
}

.servicio-card:hover .servicio-icon {
    background: var(--primary-red);
    transform: rotate(10deg) scale(1.1);
}

.servicio-card:hover .servicio-icon i {
    color: var(--white);
}

.servicio-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.servicio-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.servicio-card:hover .servicio-img-wrapper img {
    transform: scale(1.1);
}

.servicio-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.7));
}

.servicio-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.servicio-content h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--dark-blue);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.servicio-content > p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.servicio-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
    flex: 1;
}

.servicio-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-gray);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.servicio-list li:last-child {
    border-bottom: none;
}

.servicio-list li i {
    color: var(--primary-red);
    font-size: 14px;
}

.servicio-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-red);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all var(--transition-normal);
    margin-top: auto;
}

.servicio-link:hover {
    color: var(--primary-red-dark);
    gap: 15px;
}

.servicio-link i {
    transition: transform var(--transition-normal);
}

.servicio-link:hover i {
    transform: translateX(5px);
}

/* ========== STATS SECTION ========== */
.stats-section {
    padding: 80px 0;
    background: var(--dark-blue);
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/assets/images/hero-section-containers.avif') center/cover no-repeat;
    opacity: 0.1;
}

.stat-item {
    text-align: center;
    position: relative;
    z-index: 2;
}

.stat-number {
    font-family: 'Oswald', sans-serif;
    font-size: 56px;
    font-weight: 600;
    color: var(--primary-red);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ========== NOSOTROS SECTION ========== */
.nosotros {
    position: relative;
    overflow: hidden;
    background: var(--dark-blue);
}

.nosotros-bg-pattern {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(196, 30, 58, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(196, 30, 58, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.nosotros-content {
    padding: 100px 80px;
    position: relative;
    z-index: 2;
}

.nosotros-text {
    color: rgba(255,255,255,0.8);
    font-size: 15px;
    line-height: 2;
    margin-bottom: 20px;
}

.nosotros-text strong {
    color: var(--primary-red);
}

.nosotros-features {
    margin: 40px 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border-left: 3px solid var(--primary-red);
    transition: all var(--transition-normal);
}

.feature-item:hover {
    background: rgba(255,255,255,0.08);
    transform: translateX(10px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 22px;
    color: var(--white);
}

.feature-text h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 5px;
}

.feature-text p {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 35px;
    background: var(--primary-red);
    color: var(--white);
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all var(--transition-normal);
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.3);
}

.btn-primary-custom:hover {
    background: var(--primary-red-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(196, 30, 58, 0.4);
}

.btn-primary-custom i {
    transition: transform var(--transition-normal);
}

.btn-primary-custom:hover i {
    transform: translateX(5px);
}

.nosotros-video-wrapper {
    position: relative;
    height: 100%;
    min-height: 600px;
    overflow: hidden;
}

.nosotros-video-wrapper video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--dark-blue) 0%, transparent 30%);
}

.experience-badge {
    position: absolute;
    bottom: 50px;
    right: 50px;
    width: 140px;
    height: 140px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    animation: pulse 2s ease-in-out infinite;
}

.experience-badge .years {
    font-family: 'Oswald', sans-serif;
    font-size: 42px;
    font-weight: 600;
    color: var(--white);
    line-height: 1;
}

.experience-badge .text {
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    text-align: center;
    line-height: 1.3;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Parallax for video on desktop */
@media (min-width: 992px) {
    .nosotros-video-wrapper {
        clip-path: inset(0);
    }

    .nosotros-video-wrapper video {
        position: fixed;
        top: 50%;
        left: auto;
        right: 0;
        width: 50vw;
        height: 100vh;
        transform: translateY(-50%);
        z-index: -1;
    }
}

/* ========== CONTACTO SECTION ========== */
.contacto {
    padding: 120px 0;
    background: var(--light-bg);
}

.section-description {
    font-size: 16px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Contact Subsections */
.contact-subsection {
    margin-bottom: 50px;
    padding-bottom: 20px;
}

.contact-subsection:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.subsection-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.subsection-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: var(--primary-red);
}

.subsection-header.centered {
    flex-direction: column;
    text-align: center;
    gap: 15px;
}

.subsection-header.centered::after {
    left: 50%;
    transform: translateX(-50%);
}

.subsection-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.3);
}

.subsection-icon i {
    font-size: 28px;
    color: var(--white);
}

.subsection-text h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    font-weight: 500;
    color: var(--dark-blue);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.subsection-text p {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0;
}

/* Section Divider */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 70px 0;
    position: relative;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-color) 50%, transparent);
    max-width: 250px;
}

.section-divider span {
    width: 60px;
    height: 60px;
    background: var(--white);
    border: 3px solid var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 25px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.section-divider span i {
    font-size: 24px;
    color: var(--primary-red);
    transition: all var(--transition-normal);
}

.section-divider:hover span {
    background: var(--primary-red);
    transform: rotate(360deg) scale(1.1);
}

.section-divider:hover span i {
    color: var(--white);
}

/* Contact Cards */
.contact-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px 35px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    height: 100%;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-red-light));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

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

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(196, 30, 58, 0.15);
}

.contact-card-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--primary-red);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.contact-card-badge.secondary {
    background: var(--dark-blue);
    box-shadow: 0 4px 12px rgba(26, 35, 50, 0.3);
}

.contact-card-badge.whatsapp {
    background: #25D366;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-red);
}

.contact-card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--light-bg), var(--white));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    border: 2px solid var(--primary-red);
    transition: all var(--transition-normal);
}

.contact-card:hover .contact-card-icon {
    background: var(--primary-red);
}

.contact-card-icon i {
    font-size: 32px;
    color: var(--primary-red);
    transition: all var(--transition-normal);
}

.contact-card:hover .contact-card-icon i {
    color: var(--white);
}

.contact-card-icon.whatsapp {
    border-color: #25D366;
}

.contact-card-icon.whatsapp i {
    color: #25D366;
}

.contact-card.whatsapp-card:hover .contact-card-icon.whatsapp {
    background: #25D366;
}

.contact-card.whatsapp-card:hover .contact-card-icon.whatsapp i {
    color: var(--white);
}

.contact-card.whatsapp-card:hover {
    border-color: #25D366;
}

.contact-card h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.contact-card > p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.contact-card-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-card-details span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-gray);
}

.contact-card-details span i {
    color: var(--primary-red);
    font-size: 16px;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: #25D366;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 50px;
    transition: all var(--transition-normal);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #20bd5a;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-red), var(--dark-blue), var(--primary-red));
}

.form-floating > .form-control,
.form-floating > .form-select {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 16px;
    height: auto;
    font-size: 15px;
    transition: all var(--transition-normal);
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.1);
}

.form-floating > label {
    padding: 20px 16px;
    color: var(--text-light);
}

.form-floating > label i {
    margin-right: 8px;
    color: var(--primary-red);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    color: var(--primary-red);
    transform: scale(0.85) translateY(-0.75rem) translateX(0.15rem);
}

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

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 50px;
    background: var(--dark-blue);
    color: var(--white);
    border: none;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 10px 30px rgba(26, 35, 50, 0.3);
}

.btn-submit:hover {
    background: var(--primary-red);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(196, 30, 58, 0.4);
}

.btn-submit i {
    transition: transform var(--transition-normal);
}

.btn-submit:hover i {
    transform: translateX(5px);
}

/* Map */
.mapa-container {
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--border-color);
}

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

/* ========== FOOTER ========== */
.main-footer {
    background: var(--darker-blue);
    padding: 30px 0;
    border-top: 3px solid var(--primary-red);
}

.main-footer .copyright {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.main-footer .copyright i {
    color: var(--primary-red);
    margin: 0 4px;
    animation: pulse 1.5s ease-in-out infinite;
}

.main-footer .copyright a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color var(--transition-normal);
}

.main-footer .copyright a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-red);
    transition: width var(--transition-normal);
}

.main-footer .copyright a:hover {
    color: var(--primary-red);
}

.main-footer .copyright a:hover::after {
    width: 100%;
}

.social-links a {
    color: var(--white);
    font-size: 24px;
    margin-left: 15px;
    transition: all var(--transition-normal);
    opacity: 0.7;
}

.social-links a:hover {
    color: var(--primary-red);
    opacity: 1;
    transform: translateY(-3px);
}

/* ========== CHAT BUTTON ========== */
.chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-normal);
    z-index: 1000;
    color: var(--white);
    font-size: 30px;
}

.chat-btn:hover {
    transform: scale(1.1) rotate(10deg);
    color: var(--white);
    box-shadow: 0 10px 35px rgba(37, 211, 102, 0.5);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1199.98px) {
    .nosotros-content {
        padding: 80px 50px;
    }

    .hero h1 {
        font-size: 46px;
        letter-spacing: 8px;
    }
}

@media (max-width: 991.98px) {
    .hero {
        background-attachment: scroll;
        min-height: 600px;
    }

    .hero h1 {
        font-size: 36px;
        letter-spacing: 5px;
    }

    .hero-logo-img {
        max-width: 350px;
    }

    .hero-tagline {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
        letter-spacing: 4px;
    }

    .servicios {
        padding: 80px 0;
    }

    .nosotros-content {
        padding: 60px 40px;
    }

    .nosotros-video-wrapper {
        min-height: 400px;
    }

    .nosotros-video-wrapper video {
        position: absolute;
    }

    .experience-badge {
        width: 110px;
        height: 110px;
        bottom: 30px;
        right: 30px;
    }

    .experience-badge .years {
        font-size: 32px;
    }

    .stat-number {
        font-size: 42px;
    }

    .contact-form-wrapper {
        padding: 35px 25px;
    }

    .mapa-container {
        height: 350px;
    }
}

@media (max-width: 767.98px) {
    .main-header {
        padding: 8px 0;
    }

    .logo-img {
        height: 50px;
    }

    .navbar-collapse {
        background: var(--dark-blue);
        padding: 20px;
        margin-top: 15px;
        border-radius: 12px;
    }

    .navbar-nav .nav-link {
        padding: 12px 15px !important;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .hero {
        min-height: 550px;
    }

    .hero h1 {
        font-size: 28px;
        letter-spacing: 4px;
    }

    .hero-logo-img {
        max-width: 280px;
    }

    .hero-tagline {
        font-size: 14px;
    }

    .section-title {
        font-size: 26px;
        letter-spacing: 3px;
    }

    .servicios,
    .contacto {
        padding: 60px 0;
    }

    .servicio-card {
        margin-bottom: 20px;
    }

    .stats-section {
        padding: 50px 0;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-label {
        font-size: 12px;
    }

    .nosotros-content {
        padding: 50px 25px;
    }

    .nosotros-video-wrapper {
        min-height: 300px;
    }

    .experience-badge {
        width: 90px;
        height: 90px;
        bottom: 20px;
        right: 20px;
    }

    .experience-badge .years {
        font-size: 26px;
    }

    .experience-badge .text {
        font-size: 10px;
    }

    .feature-item {
        padding: 15px;
    }

    .feature-icon {
        width: 45px;
        height: 45px;
    }

    .feature-icon i {
        font-size: 18px;
    }

    .contact-card {
        padding: 25px 20px;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
    }

    .mapa-container {
        height: 280px;
        border-radius: 12px;
    }

    .main-footer .row {
        text-align: center;
    }

    .social-links {
        margin-top: 15px;
    }

    .social-links a {
        margin: 0 10px;
    }

    .chat-btn {
        width: 55px;
        height: 55px;
        font-size: 26px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 575.98px) {
    .hero h1 {
        font-size: 24px;
        letter-spacing: 3px;
    }

    .hero-logo-img {
        max-width: 220px;
    }

    .servicio-img-wrapper {
        height: 180px;
    }

    .servicio-content {
        padding: 25px 20px;
    }

    .contact-card-icon {
        width: 65px;
        height: 65px;
    }

    .contact-card-icon i {
        font-size: 26px;
    }
}


/* ========== HEADER CERTIFICATIONS ========== */
.header-brand-wrapper {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-certifications {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 25px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.cert-img {
    height: 55px;
    width: auto;
    opacity: 0.85;
    transition: all var(--transition-normal);
    /* filter: brightness(0) invert(1); Hace las imágenes blancas - quitar si ya son blancas */
}

.cert-img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 991.98px) {
    .header-brand-wrapper {
        gap: 15px;
    }

    .header-certifications {
        gap: 8px;
        padding-left: 15px;
    }

    .cert-img {
        height: 35px;
    }
}

@media (max-width: 575.98px) {
    .header-certifications {
        display: none; /* Ocultar en móvil muy pequeño */
    }
}

/* ========== NAV CTA BUTTON ========== */
.nav-item-cta {
    margin-left: 15px;
}

.nav-link-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px !important;
    background: var(--primary-red);
    color: var(--white) !important;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 25px;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.nav-link-cta:hover {
    background: var(--primary-red-dark);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

.nav-link-cta i {
    font-size: 16px;
}

/* Responsive */
@media (max-width: 991.98px) {
    .nav-item-cta {
        margin-left: 0;
        margin-top: 15px;
        text-align: center;
    }

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







/* ========== COBERTURA ADUANERA SECTION ========== */
.cobertura-section {
    padding: 100px 0;
    background: var(--light-bg);
    position: relative;
}

/* Mapa Wrapper */
.mapa-wrapper {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.mapa-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Leyenda del mapa */
.mapa-leyenda {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.leyenda-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-gray);
}

.leyenda-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-red);
    opacity: 0.5;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.leyenda-dot.sede {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.2);
}

/* Grid de regímenes */
.regimenes-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

/* Cards de régimen - COMPACTAS */
.regimen-card {
    background: var(--white);
    border-radius: 14px;
    padding: 22px 25px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-red);
    transition: all var(--transition-normal);
}

.regimen-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.regimen-card.destacado {
    border-left-color: transparent;
    background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
    border: 2px solid var(--primary-red);
    position: relative;
    overflow: hidden;
}

.regimen-card.destacado::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), #ff6b6b);
}

.regimen-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.regimen-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.regimen-icon i {
    font-size: 20px;
    color: var(--white);
}

.regimen-badge {
    display: inline-block;
    background: var(--dark-blue);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.regimen-badge.nuevo {
    background: linear-gradient(135deg, var(--primary-red), #ff6b6b);
}

.regimen-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--dark-blue);
    margin: 0;
    letter-spacing: 0.3px;
}

.regimen-card > p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.regimen-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.regimen-tags span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--text-dark);
    background: var(--light-bg);
    padding: 5px 10px;
    border-radius: 15px;
}

.regimen-tags span i {
    color: var(--primary-red);
    font-size: 12px;
}

.regimen-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 15px;
    color: var(--primary-red);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.regimen-cta:hover {
    color: var(--primary-red-dark);
    gap: 10px;
}

/* Stats de cobertura - INLINE */
.cobertura-stats {
    display: flex;
    justify-content: space-between;
    background: var(--dark-blue);
    border-radius: 12px;
    padding: 18px 25px;
}

.cobertura-stat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: rgba(196, 30, 58, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 18px;
    color: var(--primary-red);
}

.cobertura-stat .stat-value {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--white);
    line-height: 1;
}

.cobertura-stat .stat-text {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991.98px) {
    .cobertura-section {
        padding: 70px 0;
    }

    .mapa-wrapper {
        margin-bottom: 25px;
    }

    .regimenes-grid {
        gap: 15px;
    }

    .regimen-card {
        padding: 18px 20px;
    }
}

@media (max-width: 767.98px) {
    .cobertura-section {
        padding: 50px 0;
    }

    .mapa-wrapper {
        padding: 20px;
    }

    .mapa-leyenda {
        gap: 20px;
    }

    .regimen-header {
        gap: 12px;
    }

    .regimen-icon {
        width: 40px;
        height: 40px;
    }

    .regimen-icon i {
        font-size: 18px;
    }

    .regimen-card h3 {
        font-size: 16px;
    }

    .regimen-tags {
        gap: 6px;
    }

    .regimen-tags span {
        font-size: 10px;
        padding: 4px 8px;
    }

    .cobertura-stats {
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px 20px;
    }

    .cobertura-stat {
        flex: 1 1 calc(33.333% - 10px);
        min-width: 90px;
    }

    .stat-icon {
        width: 35px;
        height: 35px;
    }

    .stat-icon i {
        font-size: 16px;
    }

    .cobertura-stat .stat-value {
        font-size: 18px;
    }

    .cobertura-stat .stat-text {
        font-size: 10px;
    }
}

@media (max-width: 575.98px) {
    .ciudad-label {
        font-size: 8px;
    }

    .ciudad-label.sede {
        font-size: 9px;
    }

    .cobertura-stat {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}












/* ========== FORMULARIO DE CONTACTO MEJORADO ========== */

/* Wrapper mejorado */
.contact-form-wrapper.enhanced {
    padding: 0;
    overflow: hidden;
}

.contact-form-wrapper.enhanced::before {
    height: 6px;
}

/* Selector de tipo de consulta */
.tipo-consulta-selector {
    background: linear-gradient(135deg, var(--dark-blue), #243447);
    padding: 35px 40px;
    border-bottom: 3px solid var(--primary-red);
}

.tipo-label {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.tipo-consulta-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.tipo-consulta-options input[type="radio"] {
    display: none;
}

.tipo-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.tipo-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.tipo-consulta-options input[type="radio"]:checked + .tipo-option {
    background: rgba(196, 30, 58, 0.15);
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.1);
}

.tipo-option-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-normal);
}

.tipo-consulta-options input[type="radio"]:checked + .tipo-option .tipo-option-icon {
    background: var(--primary-red);
    box-shadow: 0 8px 20px rgba(196, 30, 58, 0.4);
}

.tipo-option-icon i {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-normal);
}

.tipo-consulta-options input[type="radio"]:checked + .tipo-option .tipo-option-icon i {
    color: var(--white);
}

.tipo-option-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tipo-option-title {
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.3px;
}

.tipo-option-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Formulario principal */
.contact-form-wrapper.enhanced .contact-form {
    padding: 40px;
}

/* Secciones del formulario */
.form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--dark-blue);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-section-title i {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
}

/* Campos condicionales */
.conditional-section {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.03), rgba(196, 30, 58, 0.01));
    margin: 0 -40px 30px;
    padding: 30px 40px;
    border-top: 2px solid rgba(196, 30, 58, 0.1);
    border-bottom: 2px solid rgba(196, 30, 58, 0.1);
}

.conditional-section .form-section-title i {
    background: linear-gradient(135deg, var(--dark-blue), #2a3f56);
}

/* Animación para campos condicionales */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sección de envío */
.form-submit-section {
    text-align: center;
    padding-top: 25px;
}

.form-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-light);
}

.form-privacy i {
    color: #28a745;
    font-size: 16px;
}

/* Botón de envío mejorado */
.contact-form-wrapper.enhanced .btn-submit {
    min-width: 220px;
    position: relative;
    overflow: hidden;
}

.btn-submit .btn-text,
.btn-submit .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-submit .btn-icon {
    transition: transform var(--transition-normal);
}

.btn-submit:hover .btn-icon {
    transform: translateX(5px);
}

.btn-submit .spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Form Select mejorado */
.form-floating > .form-select {
    padding-top: 26px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991.98px) {
    .tipo-consulta-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tipo-consulta-selector {
        padding: 25px 30px;
    }

    .contact-form-wrapper.enhanced .contact-form {
        padding: 30px;
    }

    .conditional-section {
        margin: 0 -30px 25px;
        padding: 25px 30px;
    }
}

@media (max-width: 767.98px) {
    .tipo-consulta-selector {
        padding: 20px;
    }

    .tipo-label {
        font-size: 16px;
        text-align: center;
    }

    .tipo-option {
        padding: 15px;
        gap: 12px;
    }

    .tipo-option-icon {
        width: 44px;
        height: 44px;
    }

    .tipo-option-icon i {
        font-size: 18px;
    }

    .tipo-option-title {
        font-size: 14px;
    }

    .tipo-option-desc {
        font-size: 11px;
    }

    .contact-form-wrapper.enhanced .contact-form {
        padding: 25px 20px;
    }

    .conditional-section {
        margin: 0 -20px 25px;
        padding: 20px;
    }

    .form-section-title {
        font-size: 14px;
    }

    .form-section-title i {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .form-privacy {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .tipo-option {
        flex-direction: column;
        text-align: center;
        padding: 18px 15px;
    }

    .tipo-option-text {
        align-items: center;
    }
}
