:root {
    --negro-corporativo: #222226;
    --gris-carbon:      #2E2F33;
    --gris-metalico:    #ffffff;          /* blanco para que el borde del botón brille como en principal */
    --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;
    min-height:100vh;
    padding-top:90px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--negro-corporativo);
    color: var(--gris-claro);
    min-width: 320px;
    line-height: 1.6;
}


.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);

    transition: transform 0.45s ease-in-out, opacity 0.45s ease-in-out;
}

.navbar.hide {
    transform: translateY(-100%);
    opacity: 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    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: 0.95rem;
    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(--gris-claro);
    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(--gris-claro);
}
.hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--gris-claro);
}

@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;   /* desde arriba, como pediste */
        gap: 3rem;
        transition: right 0.4s ease;
        padding: 90px 2rem 2rem;       /* espacio arriba ajustado */
        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;
    }
}

/* ============================================
   TODO LO DEMÁS IGUAL AL ORIGINAL (sin tocar nada)
============================================ */

.hero {
    height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 30px 20px;
    max-width: 95%;
}

.hero-content h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    margin-bottom: 1rem;
    color: var(--blanco);
}

.hero-content p {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    text-shadow: 1px 1px 6px rgba(0,0,0,0.7);
    margin-bottom: 2.5rem;
    color: var(--gris-claro);
}

.estadisticas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem 6rem;
}
@media (max-width:480px){

.estadisticas{
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
justify-items: center;
}

.stat:nth-child(3){
grid-column: span 2;
}

}
.stat {
    text-align: center;
}

.stat h2 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: var(--blanco);
}

.stat p {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--gris-claro);
}

.servicio {
    display: flex;
    align-items: center;
    gap: 5%;
    width: 100%;
    max-width: 1500px;
    margin: 80px auto;
    padding: 0 5%;
}

.servicio:nth-child(even) {
    flex-direction: row-reverse;
}

.imagen {
    flex: 1;
}

.imagen img {
    width: 90%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-strong);
    transition: transform 0.5s ease;
}

@media (max-width: 768px){

    .imagen img{
        width: 200%;        
        max-width: 350px;  
        margin: 0 auto;  
        display: block;
    }

}
.zoom {
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.7s ease-out;
}

.zoom.visible {
    opacity: 1;
    transform: scale(1);
}

.contenido {
    flex: 1;
}

.contenido h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--blanco);
}

.contenido p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--gris-claro);
    text-align: justify;
}
.contenido ul {
    list-style: none;
}

.contenido li {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    padding-left: 2rem;
    position: relative;
    color: var(--gris-claro);
    text-align: justify;
}

.contenido li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: var(--gris-claro);
    font-weight: bold;
}
@media (max-width:768px){

.contenido{
text-align:left;
}

}
.animar {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.6s ease-out;
}

.animar.visible {
    opacity: 1;
    transform: translateY(0);
}

.social-sidebar {
    position: fixed;
    top: 40%;
    right: 15px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 500;
}

.footer {
    background: var(--negro-corporativo);
    color: var(--gris-claro);
    padding: 5rem 5% 3rem;
    border-top: 1px solid rgba(92, 95, 102, 0.3);
    position: relative;
}
.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: 100px;
}
.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 {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    transition: transform 0.3s, background 0.3s;
}

.social-link:hover {
    transform: scale(1.15);
}

.social-link svg {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

@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:25px;
}

.footer-legal ul li a{
    display:inline-block;
}

.footer-legal .social-icons{
    justify-content:center;
}

}

@media (max-width: 992px) {
    .servicio {
        flex-direction: column !important;
        gap: 3rem;
        text-align: center;
    }
    .contenido {
        padding: 0 10px;
    }
}

@media (max-width: 600px) {
    .estadisticas { gap: 3rem 2rem; }
    .stat h2 { font-size: 2.8rem; }
}

hr {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 40px 0;
}


.footer-bottom p{
    text-align:center;
    max-width:90%;
    margin:auto;
}
.titulo-servicios{
    width: 100%;
    text-align: center;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--blanco);
    margin: 90px 0 60px 0;
    letter-spacing: 1px;
    position: relative;
}

.titulo-servicios::after{
    content: "";
    position: absolute;
    left: 50%;
    bottom: -12px;
    width: 80px;
    height: 3px;
    background: var(--gris-metalico);

    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
}

.titulo-servicios:hover::after{
    transform: translateX(-50%) scaleX(1);
}
.video-bg{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.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;
    }
}
@media (max-width:768px){

.hero-content{
text-align:center;
max-width:500px;
margin:auto;
}

.hero-content h1{
text-align:center;
}

.hero-content p{
text-align:center;
max-width:600px;
margin:auto;
}

}
.linea-servicio{
border: none;
height: 1px;
background: var(--gris-metalico);
opacity: 0.4;
width: 85%;
margin: 60px auto;
}

.lista-servicio{
text-align: justify;
}