:root {
    --negro-corporativo: #1A1A1D;
    --gris-carbon:      #2E2F33;
    --gris-metalico:    #ffffff;
    --gris-claro:       #D9D9DC;
    --blanco:           #FFFFFF;

    --primary:          var(--gris-carbon);
    --secondary:        var(--gris-claro);       
    --secondary-glow:   rgba(217, 217, 220, 0.25);
    --accent:           var(--gris-metalico);
    --text:             var(--gris-claro);
    --card-bg:          linear-gradient(145deg, #2E2F33, #1A1C1F);
    --shadow-strong:    0 10px 40px rgba(0,0,0,0.55);
    --transition:       0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--negro-corporativo);
    color: var(--text);
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(11, 11, 13, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 5%;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(92, 95, 102, 0.15);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    width: 150px;
    height: 55px;
    overflow: visible;
    margin-left: -40px;
}

.logo-img {
    width: 100%;
    height: auto;
    transform: scale(1.35);
    transform-origin: left center;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.42);
    filter: brightness(1.15) drop-shadow(0 0 8px rgba(217,217,220,0.4));
}

@media (max-width: 1024px) {
    .logo {
        width: 130px;
    }

    .logo-img {
        transform: scale(1.25);
    }
}

@media (max-width: 768px) {
    .logo {
        width: 110px;
    }

    .logo-img {
        transform: scale(1.2);
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    list-style: none;
    margin-left: auto;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 0.6rem 0;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--secondary-glow);
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-nav {
    border: 1px solid var(--gris-metalico);
    padding: 0.65rem 1.8rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    color: var(--gris-claro);
    font-size: 1.02rem;            
    font-weight: 600;
    min-width: 120px;
    text-align: center;
}

.btn-nav:hover {
    background: var(--secondary);
    color: var(--negro-corporativo) !important;
    box-shadow: 0 0 18px var(--secondary-glow);
    transform: translateY(-1px);
}

.btn-nav::after {
    display: none !important;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 28px;
    height: 3.5px;
    margin: 6px auto;
    background-color: var(--text);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--secondary);
}
.hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--secondary);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    transition: transform 0.45s ease-in-out, opacity 0.45s ease-in-out;
}

.navbar.hide {
    transform: translateY(-100%);
    opacity: 0;
}

@media (max-width: 992px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 150px;
        background: rgba(11, 11, 13, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 3rem;
        transition: right 0.4s ease;
        padding: 90px 2rem 2rem;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1rem;
        padding: 0.8rem 0;
    }

    .btn-nav {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}

.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(11,11,13,0.82) 0%, rgba(46,47,51,0.65) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1.2s ease-out;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero h1 span {
    color: var(--secondary);
    text-shadow: 0 0 30px var(--secondary-glow);
}

.hero p {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    margin-bottom: 2.8rem;
    opacity: 0.9;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.6rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(45deg, var(--secondary), #c0c0c5);
    color: var(--negro-corporativo);
    padding: 1.15rem 2.6rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 6px 18px var(--secondary-glow);
    font-size: 1.05rem;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px var(--secondary-glow);
}

.btn-primary.small {
    padding: 0.85rem 2rem;
    font-size: 0.98rem;
    min-width: 160px;
}

.btn-primary.large {
    padding: 1.3rem 3rem;
    font-size: 1.15rem;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--gris-metalico);
    color: var(--gris-claro);
    padding: 1rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--gris-claro);
    color: var(--negro-corporativo);
    box-shadow: 0 0 20px var(--secondary-glow);
}

.section {
    padding: 1.5rem 2rem 4rem !important;
    max-width: 1400px;
    margin: 0 auto;
}

.dark-section {
    background: rgba(46, 47, 51, 0.8);
    border-radius: 20px;
    margin: 0.5rem auto 2rem !important;
    padding: 3rem 2rem;
    backdrop-filter: blur(5px);
    max-width: 1400px;
}

.container {
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem !important;
    color: #e8e8f0;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    letter-spacing: 0.8px;
}

.subtitle {
    opacity: 1;
    margin-bottom: 0.5rem !important;
    color: #b8bed1;
    font-size: 1.1rem;
    font-weight: 500;
}

#ubicacion {
    padding-top: 0 !important;
    margin-top: -3.5rem !important;
}

#ubicacion .container {
    margin-top: 0 !important;
}

.location-wrapper {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem !important;
    height: 480px;
}

.hours-card {
    flex: 1;
    background: linear-gradient(160deg, #2E2F33 0%, #1A1C1F 100%);
    border: 1px solid rgba(92, 95, 102, 0.35);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.hours-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(92, 95, 102, 0.25);
    flex-shrink: 0;
}

.hours-icon {
    font-size: 1.6rem;
}

.hours-header h3 {
    color: var(--gris-claro);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.hours-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.3rem;
}

.hour-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    background: rgba(92, 95, 102, 0.08);
    transition: background 0.2s ease;
}

.hour-row:hover {
    background: rgba(217, 217, 220, 0.06);
}

.hour-row .day {
    font-weight: 600;
    color: #e2e8f0;
    font-size: 0.9rem;
}

.hour-row .time {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.85rem;
    background: rgba(217, 217, 220, 0.12);
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
}

.hour-row.weekend .time {
    color: #e0c070;
    background: rgba(224, 192, 112, 0.15);
}

.hour-row.closed .time {
    color: #d06666;
    background: rgba(208, 102, 102, 0.15);
}

.hours-footer {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(92, 95, 102, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #88cc88;
    flex-shrink: 0;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #88cc88;
    border-radius: 50%;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

.map-wrapper {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(92, 95, 102, 0.2);
    background: #0d1b2a;
    position: relative;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/* MÓVIL - horarios arriba, mapa abajo con altura fija */
@media (max-width: 768px) {
    .location-wrapper {
        flex-direction: column;
        height: auto !important;
        gap: 2rem;
        margin: 0 auto 3rem !important;
    }

    .hours-card {
        min-height: 380px;
        padding: 1.8rem 1.5rem;
    }

    .map-wrapper {
        height: 450px !important;
        min-height: 400px;
        width: 100%;
    }

    .map-wrapper iframe {
        height: 100% !important;
        width: 100% !important;
    }

    .location-wrapper + div {
        margin-top: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .map-wrapper {
        height: 380px !important;
    }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

.brands-carousel-section {
    padding: 5rem 5% 4rem;
    background: var(--negro-corporativo);
    text-align: center;
}

.brands-carousel-section h3 {
    font-size: clamp(1.9rem, 4.5vw, 2.4rem);
    margin-bottom: 2.5rem;
    color: var(--gris-claro);
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 3px 15px rgba(217,217,220,0.2);
}

.brands-carousel-wrapper {
    max-width: 1700px;
    margin: 0 auto;
    background: linear-gradient(145deg, #1C1E23, #27292F);
    border: 1px solid rgba(92, 95, 102, 0.45);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 60px rgba(0,0,0,0.65);
    padding: 3rem 2.5rem 2.5rem;
    backdrop-filter: blur(4px);
}

.brands-carousel {
    overflow: hidden;
    position: relative;
    height: 180px;
    width: 100%;
}

.brands-track {
    display: flex;
    align-items: center;
    animation: scrollBrands 120s linear infinite;
    width: max-content;
}

.brand-logo {
    width: 220px;
    height: 110px;
    margin: 0 4.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.brands-track img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(50%) brightness(1.3);
    transition: all 0.4s ease;
    border-radius: 14px;
}

.brands-track img:hover {
    filter: grayscale(0%) brightness(1.45);
    transform: scale(1.25);
    box-shadow: 0 12px 40px rgba(217,217,220,0.28);
}

.brand-logo:hover {
    transform: translateY(-6px);
}

@keyframes scrollBrands {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.brands-carousel:hover .brands-track,
.brands-carousel-wrapper:hover .brands-track {
    animation-play-state: paused;
}

@media (max-width: 1400px) {
    .brand-logo { width: 190px; height: 100px; margin: 0 4rem; }
    .brands-carousel { height: 160px; }
}

@media (max-width: 1200px) {
    .brand-logo { width: 170px; height: 90px; margin: 0 3.5rem; }
    .brands-carousel { height: 150px; }
}

@media (max-width: 992px) {
    .brands-carousel { height: 140px; }
    .brand-logo { width: 150px; height: 80px; margin: 0 3rem; }
    .brands-carousel-section { padding: 4rem 5% 3rem; }
}

@media (max-width: 768px) {
    .brand-logo { width: 130px; height: 70px; margin: 0 2.5rem; }
    .brands-carousel { height: 120px; }
}

@media (max-width: 600px) {
    .brands-carousel-section h3 { font-size: 1.8rem; margin-bottom: 2rem; }
    .brand-logo { width: 110px; height: 60px; margin: 0 2rem; }
    .brands-carousel { height: 100px; }
    .brands-carousel-wrapper { padding: 2rem 1.5rem 1.5rem; border-radius: 20px; }
}

.grid-specialties,
.services-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 2.5rem;
    overflow-x: auto;
    padding: 2.5rem 1.5rem 4rem;
    max-width: 1400px;
    margin: 0 auto 4rem auto;
    scroll-snap-type: x mandatory;
    justify-content: center;
    -webkit-overflow-scrolling: touch;
}

.grid-specialties::-webkit-scrollbar,
.services-grid::-webkit-scrollbar {
    height: 8px;
}

.grid-specialties::-webkit-scrollbar-track,
.services-grid::-webkit-scrollbar-track {
    background: rgba(92, 95, 102, 0.12);
    border-radius: 10px;
}

.grid-specialties::-webkit-scrollbar-thumb,
.services-grid::-webkit-scrollbar-thumb {
    background: var(--gris-metalico);
    border-radius: 10px;
}

.specialty-card,
.service-card {
    flex: 0 0 380px;
    min-width: 360px;
    background: var(--card-bg);
    padding: 2rem 2rem 3.5rem;
    border-radius: 15px;
    transition: 0.4s;
    border: 1px solid rgba(92, 95, 102, 0.18);
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    min-height: 480px;
    scroll-snap-align: center;
}

.specialty-card:hover,
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
    border-color: var(--secondary);
}

.specialty-card img,
.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.specialty-card h3,
.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #c5ccff;
    font-weight: 700;
    text-shadow: 0 1px 5px rgba(0,0,0,0.4);
}

.specialty-card p,
.service-card p {
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--gris-metalico);
}

.service-card ul {
    text-align: left;
    padding-left: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    flex-grow: 1;
    color: var(--gris-metalico);
}

.service-card ul li {
    margin-bottom: 0.7rem;
}

.service-card .btn-primary {
    margin-top: auto;
    align-self: center;
}

.cta-section {
    padding: 6rem 2rem;
    text-align: center;
    background: rgba(46, 47, 51, 0.9);
    margin-top: 4rem;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    opacity: 0.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--gris-metalico);
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 11, 13, 0.88);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--card-bg);
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(92, 95, 102, 0.25);
    animation: slideUp 0.4s;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2rem;
    color: var(--text);
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: var(--secondary);
}

.modal-content h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    font-size: 1.5rem;
}

.modal-content form {
    display: flex;
    flex-direction: column;
}

.modal-content label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.modal-content input,
.modal-content textarea {
    padding: 0.8rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(92, 95, 102, 0.3);
    background: rgba(217, 217, 220, 0.05);
    color: var(--text);
    font-family: inherit;
    transition: border-color 0.3s, background 0.3s;
    width: 100%;
}

.modal-content input::placeholder,
.modal-content textarea::placeholder {
    color: rgba(217, 217, 220, 0.45);
    font-style: italic;
    font-size: 0.9rem;
}

.modal-content input:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(217, 217, 220, 0.1);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group {
    flex: 1;
}

.footer {
    background: var(--negro-corporativo);
    color: var(--gris-claro);
    padding: 5rem 5% 3rem;
    border-top: 1px solid rgba(92, 95, 102, 0.3);
}

.hecho-por{
  font-size:11px;
  color:#aaa;
  margin-top:6px;
  text-align:right;
  margin-right: 40px;
}

@media (max-width:768px){
  .hecho-por{
    text-align:center;
    margin-right:0;
    margin-top:10px;
    display:block;
  }
}

.hecho-por a{
  color:#aaa;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:4px;
}

.texto-hecho{
  font-size:12px;
  font-weight: 100;
}

.hecho-por img{
  width: 40px;
  height: 40px;
  border-radius:50%;
  position: relative;
  top: 7px;
  vertical-align: middle;
  margin-left: 6px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;   
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-brand,
.footer-contact,
.footer-legal {
    flex: 1;
    min-width: 280px;
}

.footer-brand {
    max-width: 380px;
}

.footer-brand img.footer-logo {
    max-width: 220px;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.9;
}

.footer-contact h4,
.footer-legal h4 {
    font-size: 1.35rem;
    margin-bottom: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gris-claro);
}

.footer-contact p {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.footer-contact a {
    color: var(--gris-claro);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--secondary);
}

.footer-legal ul.legal-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-legal ul.legal-links li {
    margin-bottom: 1rem;
}

.footer-legal a.legal-link {
    color: var(--gris-claro);
    text-decoration: underline;
    font-size: 1.05rem;
    transition: color 0.3s;
}

.footer-legal a.legal-link:hover {
    color: var(--secondary);
}

.social-icons {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
}

.social-link {
    display: block;
    transition: transform 0.3s;
}

.social-link:hover {
    transform: scale(1.15);
}

.social-link svg {
    width: 36px;
    height: 36px;
}

.footer-bottom {
    margin-top: 5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(92, 95, 102, 0.3);
    text-align: center;
    font-size: 0.95rem;
    opacity: 0.85;
}

@media (max-width: 768px) {

.footer-container{
    flex-direction: column;
    align-items: center;
    gap: 3.5rem;
}

.footer-brand,
.footer-contact,
.footer-legal{
    width: 100%;
    max-width: 420px;
}

.footer-brand{
    text-align: center;
}

.footer-logo{
    display:block;
    margin:0 auto;
}

.footer-contact h4,
.footer-legal h4{
    text-align:center;
}

.footer-contact p{
    text-align:left;
    margin-left:25px;
}

.footer-legal ul{
    text-align:center;
    margin-left: 60px;
}

.footer-legal ul li a{
    display:inline-block;
}

.footer-legal .social-icons{
    justify-content:center;
}

}

.scroll-anim {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-anim.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 600px) {
    .footer {
        padding: 4rem 5% 2.5rem;
    }

    .footer-logo {
        max-width: 240px;
    }
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #0B0B0D;
}

::-webkit-scrollbar-thumb {
    background: var(--gris-metalico);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gris-claro);
}

@media (max-width: 500px) {

    .services-grid {
        flex-wrap: wrap;
        overflow-x: hidden;
        justify-content: center;
        gap: 1.5rem;
        padding: 2rem 1rem 3rem;
    }

    .service-card {
        flex: 0 0 100%;
        min-width: 0;
        max-width: 420px;
        min-height: auto;
    }

    .service-card img {
        height: 180px;
    }
}

@media (min-width: 501px) and (max-width: 768px) {

    .services-grid {
        flex-wrap: wrap;
        overflow-x: hidden;
        justify-content: space-between;
        gap: 1.5rem;
        padding: 2rem 1.5rem 3rem;
    }

    .service-card {
        flex: 0 0 48%;
        min-width: 0;
        min-height: auto;
    }

    .service-card img {
        height: 170px;
    }
}

@media (min-width: 769px) {

    .services-grid {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .service-card {
        flex: 0 0 380px;
        min-width: 360px;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 2.5rem 1.5rem 4rem;
    max-width: 1400px;
    margin: 0 auto 4rem auto;
}

.service-card {
    min-width: 0;
    flex: unset;
    width: 100%;
    min-height: auto;
}

@media (max-width: 400px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card img {
        height: 170px;
    }
}


.social-float {
    position: fixed;
    right: 20px;
    bottom: 50px;              /* subimos un poco todo el grupo para dar más espacio abajo */
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 35px;                 /* separación notable entre los dos íconos */
    align-items: center;
}

.social-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 28px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

.social-float a.whatsapp {
    background: #25D366;
}

.social-float a.facebook {
    background: #1877F2;
    order: -1;                 /* Facebook arriba, WhatsApp abajo */
    margin-bottom: 15px;       /* empuja aún más hacia abajo al WhatsApp */
}

/* Hover effects */
.social-float a:hover {
    transform: scale(1.15);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.social-float a.whatsapp:hover {
    background: #20b858;
}

.social-float a.facebook:hover {
    background: #1666d2;
}

/* Versión móvil */
@media (max-width: 768px) {
    .social-float {
        right: 15px;
        bottom: 40px;          /* un poco menos espacio en móvil */
        gap: 28px;
    }
    .social-float a {
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
    .social-float a.facebook {
        margin-bottom: 12px;
    }
}