/*
Theme Name: Reinicio Bateria Custom
Author: Nosotros
Description: Tema Automotriz Completo - Corrección Safari y Logo
Version: 10.0
*/

:root {
    --bg-dark: #0e1013;
    --bg-card: #ffffff;
    --bg-section-light: #f8fafc;
    --accent-red: #dc2626;
    --accent-red-hover: #b91c1c;
    --accent-blue: #2563eb;
    --accent-blue-hover: #1d4ed8;
    --whatsapp-green: #25d366;
    --whatsapp-green-hover: #1eaa53;
    --text-light: #ffffff;
    --text-gray: #a0a7b5;
    --text-dark: #111827;
    --text-body-dark: #4b5563;
    --border-dark: rgba(255, 255, 255, 0.12);
    --border-light: #e2e8f0;
    --font-heading: 'Barlow', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none !important;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ÍCONOS BLANCOS EN BOTONES */
.icon-white {
    color: #ffffff !important;
    fill: #ffffff !important;
    margin-right: 8px;
    font-size: 0.9em;
}

/* ================= 1. NAVEGACIÓN Y HEADER ================= */

.site-header {
    position: relative;
    width: 100%;
}

.top-nav {
    background: var(--bg-dark);
    padding: 0.8rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.35s ease-in-out;
    border-bottom: 1px solid var(--border-dark);
}

.top-nav.scrolled {
    background: #ffffff !important;
    padding: 0.6rem 0;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
    border-bottom: none;
}

.header-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 15px;
}

/* 1. FIX SAFARI: LOGO CON RESTRICCIÓN ESTRICTA DE TAMAÑO Y CONTENEDOR */
.logo {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    height: 45px !important;
    max-height: 45px !important;
    max-width: 220px !important; /* Limita el ancho en Safari */
    width: auto !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    transition: transform 0.3s ease;
}

.site-logo-img {
    display: block !important;
    height: 100% !important;
    max-height: 45px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
}

.logo:hover {
    transform: scale(1.03);
}

/* 2. MENÚ DE NAVEGACIÓN PRINCIPAL (FILA HORIZONTAL DESK) */
.main-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.8rem !important;
    margin: 0 auto !important;
    position: static !important;
    background: transparent !important;
    width: auto !important;
    box-shadow: none !important;
    padding: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
}

.main-nav a {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap !important;
    transition: color 0.3s ease;
}

.top-nav.scrolled .main-nav a {
    color: #374151;
}

.main-nav a:hover,
.top-nav.scrolled .main-nav a:hover {
    color: var(--accent-red);
}

.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #15181e;
    min-width: 240px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-radius: 12px;
    padding: 10px 0;
    border: 1px solid var(--border-dark);
}

.top-nav.scrolled .dropdown-menu {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.88rem !important;
    color: #cbd5e1 !important;
}

.top-nav.scrolled .dropdown-menu a {
    color: #4b5563 !important;
}

.dropdown-menu a:hover {
    background: rgba(220, 38, 38, 0.1);
    color: var(--accent-red) !important;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

/* 3. ACCIONES Y BOTÓN EN EL EXTREMO DERECHO */
.header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
    margin-left: 0 !important;
}

.btn-header {
    background: var(--accent-red) !important;
    color: #ffffff !important;
    padding: 0.65rem 1.4rem !important;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.35);
}

.btn-header:hover {
    background: var(--accent-red-hover) !important;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.top-nav.scrolled .menu-toggle .bar {
    background-color: var(--text-dark);
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* ================= 2. BOTONES Y HERO ================= */

.btn {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 50px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-align: center;
    color: #ffffff !important;
}

.btn-whatsapp {
    background: var(--whatsapp-green) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: var(--whatsapp-green-hover) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.btn-blue {
    background: var(--accent-blue) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.btn-blue:hover {
    background: var(--accent-blue-hover) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.hero-header {
    position: relative;
    padding-top: 180px;
    padding-bottom: 100px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.09) 50%, transparent 100%);
    transform: rotate(25deg);
    animation: spotlightSweep 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes spotlightSweep {
    0%, 70% { left: -100%; }
    100% { left: 200%; }
}

.hero-content-left {
    max-width: 680px;
    position: relative;
    z-index: 3;
}

.tag-badge {
    display: inline-block;
    color: var(--accent-red);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.hero-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.8vw, 3.8rem);
    font-weight: 900;
    line-height: 1.08;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-header p {
    font-size: 1.05rem;
    color: var(--text-gray);
    margin-bottom: 24px;
}

.hero-features {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    font-size: 0.85rem;
    color: #e2e8f0;
}

.hero-features span {
    background: rgba(255, 255, 255, 0.06);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid var(--border-dark);
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ================= 3. SECCIÓN SERVICIOS INICIO ================= */

.services-section {
    padding: 100px 0;
    background-color: #efeded;
    color: var(--text-dark);
}

.services-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.services-intro-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 15px;
}

.services-intro-card .sub-title {
    color: var(--accent-red);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.services-intro-card h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 2.7rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.services-intro-card p {
    color: var(--text-body-dark);
    font-size: 0.98rem;
    margin-bottom: 28px;
    line-height: 1.65;
}

.btn-outline-dark {
    display: inline-block;
    border: 1.5px solid var(--accent-red);
    color: var(--accent-red) !important;
    padding: 0.85rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-outline-dark:hover {
    background: var(--accent-red);
    color: #ffffff !important;
    transform: translateY(-2px);
}

.service-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-img-wrap {
    position: relative;
    width: 100%;
    height: 210px;
    background: #d1d5db;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.floating-badge-icon {
    position: absolute;
    bottom: -22px;
    right: 22px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-red);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
    z-index: 10;
}

.floating-badge-icon svg {
    width: 22px;
    height: 22px;
}

.card-body {
    padding: 34px 24px 28px 24px;
    flex-grow: 1;
}

.vehicle-tag {
    display: block;
    color: var(--accent-red);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.card-body p {
    color: var(--text-body-dark);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ================= 4. EQUIPO ================= */

.team-section {
    position: relative;
    width: 100%;
    background: #ffffff;
}

.team-section-top {
    padding-top: 90px;
}

.team-header-title {
    text-align: center;
    margin-bottom: 50px;
}

.team-header-title h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text-dark);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.team-card {
    text-align: center;
    position: relative;
}

.team-info h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.team-role {
    display: block;
    color: var(--text-body-dark);
    font-size: 0.88rem;
    margin-bottom: 16px;
}

.team-socials {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.team-socials a {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: #f9fafb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    transition: all 0.3s ease;
}

.team-socials a:hover {
    background: var(--accent-blue) !important;
    border-color: var(--accent-blue) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.team-avatar-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: -130px;
    position: relative;
    z-index: 10;
    cursor: pointer;
}

.team-avatar-wrap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.45) 0%, rgba(37, 99, 235, 0.12) 50%, transparent 70%);
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.avatar-ring {
    width: 290px;
    height: 290px;
    border-radius: 50%;
    border: 2px solid rgba(229, 231, 235, 0.85);
    padding: 16px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.avatar-ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.45s ease;
}

.avatar-ring::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.6) 50%, transparent 60%);
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.65s ease;
    pointer-events: none;
}

.team-avatar-wrap:hover::before,
.team-card:hover .team-avatar-wrap::before {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 1;
}

.team-avatar-wrap:hover .avatar-ring::after,
.team-card:hover .avatar-ring::after {
    transform: rotate(45deg) translateX(100%);
}

.team-avatar-wrap:hover .avatar-ring,
.team-card:hover .avatar-ring {
    border-color: var(--accent-blue);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.3);
}

.team-avatar-wrap:hover .avatar-ring img,
.team-card:hover .avatar-ring img {
    transform: scale(1.08);
}

.team-section-bottom {
    background: var(--bg-dark);
    height: 170px;
    width: 100%;
}

/* ================= 5. PÁGINA INTERNA DE SERVICIO ================= */

.service-details-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: var(--text-dark);
}

.service-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 45px;
    align-items: start;
}

.service-subtitle {
    color: var(--accent-red);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.service-main-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.service-paragraph {
    color: var(--text-body-dark);
    font-size: 1.02rem;
    line-height: 1.75;
    margin-bottom: 20px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 35px 0;
}

.benefit-card {
    background: var(--bg-section-light);
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid var(--accent-red);
}

.benefit-card.border-blue {
    border-left-color: var(--accent-blue);
}

.benefit-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.benefit-card p {
    font-size: 0.92rem;
    color: var(--text-body-dark);
    line-height: 1.5;
}

.process-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text-dark);
    margin: 40px 0 20px 0;
}

.process-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #ffffff;
    padding: 18px 22px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.step-number {
    background: var(--accent-red);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.process-step strong {
    display: block;
    font-size: 1.02rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.process-step span {
    font-size: 0.92rem;
    color: var(--text-body-dark);
}

/* TARJETA FLOTANTE DERECHA */
.service-sidebar-card {
    background-color: #1e293b !important;
    color: #ffffff !important;
    padding: 35px 25px !important;
    border-radius: 16px !important;
    position: sticky !important;
    top: 100px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.sidebar-tag {
    color: #ffffff !important;
    font-family: var(--font-heading) !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    display: block !important;
    margin-bottom: 12px !important;
}

.sidebar-title {
    color: #ffffff !important;
    font-family: var(--font-heading) !important;
    font-size: 1.45rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    line-height: 1.25 !important;
    margin-bottom: 14px !important;
}

.sidebar-desc {
    color: #e2e8f0 !important;
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
    margin-bottom: 25px !important;
}

.sidebar-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-bottom: 25px !important;
}

.sidebar-btn {
    width: 100% !important;
    display: block !important;
}

.sidebar-footer-info {
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding-top: 20px !important;
    font-size: 0.85rem !important;
    color: #ffffff !important;
}

.sidebar-footer-info strong {
    display: block !important;
    margin-bottom: 4px !important;
    color: #ffffff !important;
}

.sidebar-footer-info span {
    color: #cbd5e1 !important;
}

/* BANNER CTA INFERIOR */
.cta-bottom-section {
    background-color: var(--bg-dark);
    padding: 70px 0;
    border-top: 1px solid var(--border-dark);
    text-align: center;
    color: #ffffff;
}

.cta-container {
    max-width: 800px;
}

.cta-container h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #ffffff;
}

.cta-container p {
    color: var(--text-gray);
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.cta-actions {
    display: flex;
    justify-content: center;
}

/* ================= 6. FOOTER Y LOGO DEL FOOTER ================= */

.site-footer {
    position: relative;
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 90px 0 40px 0;
    background-color: #1a1d22;
}

.footer-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 16, 19, 0.75) 0%, rgba(14, 16, 19, 0.45) 100%);
    z-index: 1;
}

.footer-container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* FIX SAFARI: RESTRICCIÓN LOGO FOOTER */
.footer-col .footer-logo {
    display: block !important;
    margin-bottom: 15px;
    height: 55px !important;
    max-height: 55px !important;
    max-width: 260px !important;
    width: auto !important;
    overflow: hidden !important;
}

.footer-col .footer-logo .site-logo-img {
    height: 100% !important;
    max-height: 55px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
}

.footer-col h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: #ffffff;
    text-transform: uppercase;
}

.footer-desc {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.social-section h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #ffffff;
    text-transform: uppercase;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    transform: translateY(-3px);
}

.contact-list, .services-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: #e2e8f0;
    font-size: 0.95rem;
}

.contact-list .icon {
    color: var(--accent-red);
    font-size: 1.2rem;
    margin-top: 3px;
}

.services-list li {
    margin-bottom: 12px;
}

.services-list a {
    color: #cbd5e1;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.services-list a:hover {
    color: var(--accent-red);
}

/* ================= 7. RESPONSIVO Y MÓVIL ================= */

@media (max-width: 1024px) {
    .services-grid-layout { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; }
    .avatar-ring { width: 220px; height: 220px; padding: 12px; }
    .team-avatar-wrap { margin-bottom: -90px; }
}

@media (max-width: 992px) {
    .service-layout-grid { grid-template-columns: 1fr; gap: 40px; }
    .service-sidebar-card { position: static !important; width: 100% !important; }
}

@media (max-width: 880px) {
    /* Ajuste de logo móvil para Safari */
    .logo { height: 38px !important; max-height: 38px !important; max-width: 180px !important; }
    .site-logo-img { height: 100% !important; max-height: 38px !important; }
    
    .services-grid-layout { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; gap: 40px; }
    .team-avatar-wrap { margin-bottom: 0; }
    .team-section-bottom { display: none; }
    .footer-container { grid-template-columns: 1fr; gap: 35px; }

    .menu-toggle { display: flex !important; }
    
    .header-actions {
        margin-left: auto !important;
    }

    .main-nav {
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        width: 100% !important;
        background: #111418 !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 20px 30px !important;
        gap: 18px !important;
        border-bottom: 1px solid var(--border-dark) !important;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5) !important;
        transform: translateY(-150%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: all 0.35s ease-in-out !important;
        margin-right: 0 !important;
    }

    .main-nav.active {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .top-nav.scrolled .main-nav {
        background: #ffffff !important;
        border-bottom: 1px solid #e5e7eb !important;
    }

    .dropdown-menu {
        position: static !important;
        display: block !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding-left: 15px !important;
        min-width: auto !important;
    }

    .hero-header { padding-top: 140px; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; text-align: center; }
}

@media (max-width: 600px) {
    .benefits-grid { grid-template-columns: 1fr; }
    .process-step { align-items: flex-start; }
}