/* ===== RESET Y VARIABLES ===== */
:root {
    --primary-red: #e31e24;
    --primary-red-dark: #b71c1c;
    --dark-bg: #0a0a0a;
    --dark-gray: #111;
    --light-gray: #f8f9fa;
    --text-dark: #111;
    --text-gray: #666;
    --white: #ffffff;
    --shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 25px 45px rgba(227, 30, 36, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: var(--white);
}

/* ===== NAVBAR (mismo estilo que index) ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background: var(--dark-gray);
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid rgba(227, 30, 36, 0.2);
}

.logo {
    height: 65px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.menu {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
    font-size: 15px;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.menu a:hover::after,
.menu a.active::after {
    width: 100%;
}

.menu a:hover,
.menu a.active {
    color: var(--primary-red);
}

.btn-nav {
    background: var(--primary-red);
    padding: 10px 22px !important;
    border-radius: 30px;
    transition: all 0.3s !important;
    font-weight: 600 !important;
}

.btn-nav:hover {
    background: var(--primary-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 30, 36, 0.4);
}

.btn-nav::after {
    display: none !important;
}

.social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-icon {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon:hover {
    color: var(--primary-red);
    background: rgba(227, 30, 36, 0.1);
    transform: translateY(-3px);
    border-color: rgba(227, 30, 36, 0.3);
    box-shadow: 0 5px 12px rgba(227, 30, 36, 0.25);
}

/* Menú hamburguesa */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(10px);
    z-index: 998;
    padding-top: 100px;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-list {
    list-style: none;
    padding: 0 30px;
}

.mobile-menu-list li {
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    transition-delay: calc(0.1s * var(--i, 0));
}

.mobile-menu.active .mobile-menu-list li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-list li:nth-child(1) { --i: 1; }
.mobile-menu-list li:nth-child(2) { --i: 2; }
.mobile-menu-list li:nth-child(3) { --i: 3; }
.mobile-menu-list li:nth-child(4) { --i: 4; }
.mobile-menu-list li:nth-child(5) { --i: 5; }
.mobile-menu-list li:nth-child(6) { --i: 6; }

.mobile-menu-list a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: 600;
    transition: color 0.3s;
    display: inline-block;
}

.mobile-menu-list a:hover {
    color: var(--primary-red);
    transform: translateX(10px);
}

.mobile-btn-nav {
    background: var(--primary-red);
    padding: 12px 30px !important;
    border-radius: 40px;
    font-size: 20px !important;
}

.mobile-social {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    padding: 0 30px;
}

.mobile-social-icon {
    color: white;
    font-size: 28px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}

.mobile-social-icon:hover {
    background: var(--primary-red);
    transform: translateY(-5px);
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    height: 50vh;
    min-height: 350px;
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(227, 30, 36, 0.3), rgba(0, 0, 0, 0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 20px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-breadcrumb {
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-breadcrumb a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.hero-breadcrumb a:hover {
    color: var(--primary-red);
}

.hero-breadcrumb span {
    color: var(--primary-red);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SERVICE SECTIONS ===== */
.service-section {
    padding: 80px 0;
}

.service-section.alt-bg {
    background: var(--light-gray);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

.service-header {
    text-align: center;
    margin-bottom: 50px;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(227, 30, 36, 0.3);
}

.service-icon i {
    font-size: 40px;
    color: white;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-red);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    font-weight: 300;
}

/* Office Cards Grid */
.offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.offices-grid.two-columns {
    grid-template-columns: repeat(2, 1fr);
}

.office-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 1px solid rgba(227, 30, 36, 0.1);
    position: relative;
    overflow: hidden;
}

.office-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.office-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.office-card:hover::before {
    transform: scaleX(1);
}

.office-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.office-card h4 i {
    margin-right: 10px;
}

.office-card p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 8px;
    line-height: 1.5;
}

.office-card p i {
    margin-right: 8px;
    color: var(--primary-red);
}

/* Service Image */
.service-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease;
}

.service-image:hover {
    transform: scale(1.02);
}

.service-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Video Container */
.video-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.video-container video {
    width: 100%;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(227, 30, 36, 0.2), transparent);
    pointer-events: none;
}

.badge-giro {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-red);
    color: white;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.convenio-text {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-dark));
    border-radius: 15px;
    color: white;
}

.convenio-text i {
    margin-right: 10px;
    font-size: 24px;
}

.convenio-text p {
    margin: 0;
    font-size: 16px;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 60px 0;
    text-align: center;
}

.cta-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary, .btn-whatsapp {
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--primary-red);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-red-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(227, 30, 36, 0.4);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark-bg);
    color: #bbb;
    padding: 60px 20px 30px;
    border-top: 1px solid rgba(227, 30, 36, 0.2);
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo img {
    width: 130px;
    margin-bottom: 20px;
    transition: opacity 0.3s;
}

.footer-logo img:hover {
    opacity: 0.9;
}

.footer-info p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-info i {
    margin-right: 8px;
    color: var(--primary-red);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.social-links a {
    color: white;
    font-size: 24px;
    transition: all 0.3s;
}

.social-links a:hover {
    color: var(--primary-red);
    transform: translateY(-3px);
}

.copyright p {
    font-size: 14px;
    color: #777;
    margin-top: 20px;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    transition: all 0.3s;
    z-index: 100;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .section-title {
        font-size: 36px;
    }
}

@media (max-width: 900px) {
    .menu, .nav-right .social-icons {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .logo {
        height: 55px;
    }
    
    .navbar {
        padding: 12px 5%;
    }
    
    .hero-content h1 {
        font-size: 40px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .offices-grid.two-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .service-section {
        padding: 50px 0;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .offices-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .cta-content h3 {
        font-size: 24px;
    }
    
    .btn-primary, .btn-whatsapp {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 30px;
        bottom: 20px;
        right: 20px;
    }
    
    .mobile-menu-list a {
        font-size: 20px;
    }
    
    .mobile-btn-nav {
        font-size: 18px !important;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 280px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 30px;
    }
    
    .office-card {
        padding: 20px;
    }
    
    .office-card h4 {
        font-size: 18px;
    }
}