/* ============================================
   RESET Y CONFIGURACIÓN GENERAL
   ============================================ */



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden !important;
    /* 👈 evita cualquier espacio blanco */
    font-family: "Roboto", sans-serif;
}

/* BOTÓN FLOTANTE WHATSAPP */
.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 999;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.15);
}



/* ============================================
   HEADER - MENÚ DE NAVEGACIÓN
   ============================================ */
nav {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Iconos de redes sociales */
.iconos-left {
    display: flex;
    margin-left: 10px;
    gap: 25px;
    align-items: center;
}

.iconos-left a {
    transition: transform 0.3s ease;
}

.iconos-left a:hover {
    transform: translateY(-3px) scale(1.1);
}

.iconos-left i {
    font-size: 24px;
    color: white;
    transition: color 0.3s ease;
}
/* Facebook */
.iconos-left i.fa-facebook:hover {
    color: #3b5998;
}


/* Instagram */
.iconos-left i.fa-instagram:hover {
    color: #C13584;
}

/* WhatsApp */
.iconos-left i.fa-whatsapp:hover {
    color: #25D366;
}


/* Botón hamburguesa */
.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    z-index: 10000;
    transition: 0.3s ease;
    padding: 8px;
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger span {
    height: 3px;
    width: 28px;
    background: white;
    margin: 4px 0;
    border-radius: 3px;
    transition: 0.3s ease;
}

/* Animación hamburguesa → X */
.hamburger.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Menú desplegable */
nav ul {
    list-style: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 55px;
    margin: 0;
    padding: 0;
    backdrop-filter: blur(15px);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(26, 26, 26, 0.92) 100%);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-30px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

/* Cuando se abre el menú */
nav ul.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Items del menú */
nav ul li a {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-size: 35px;
    font-weight: 600;
    padding: 15px 30px;
    position: relative;
    transition: transform 0.5s ease, color 0.4s ease;
}

/* Efecto underline animado */
nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #8d9fec 0%, #a6c0fe 100%);
    transform: translateX(-50%);
    transition: width 0.4s ease;
    border-radius: 2px;
}

nav ul li a:hover::before {
    width: 70%;
}

nav ul li a:hover {
    transform: scale(1.15);
    color: #8d9fec;
}

/* ============================================
   SECCIÓN HERO / PRESENTACIÓN
   ============================================ */
.clase-titulo {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

/* Imagen de fondo */
.clase-titulo .fondo {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    display: block;
    filter: brightness(0.65);
}

/* Contenido centrado */
.clase-titulo .contenido {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
}

/* Título principal */
.clase-titulo .titulo {
    color: #ffffff;
    font-size: 65px;
    font-weight: 900;
    margin: 0;
    text-shadow: 4px 4px 15px rgba(0, 0, 0, 0.9);
    letter-spacing: 3px;
    animation: fadeInDown 1.2s ease;
    position: relative;
    bottom: -80px;
}

.titulo {
    font-size: 60px;
    font-weight: 700;
    text-align: center;
}

/* Colores con brillo */
.titulo .lubri {
    color: #9b3d3d;
    /* amarillo */
    animation: float 3s ease-in-out infinite, glowYellow 2s ease-in-out infinite;
}

.titulo .centro {
    color: #ffffff;
    /* blanco */
    animation: float 3s ease-in-out infinite, glowWhite 2s ease-in-out infinite;
}

/* Animación de flotación */
@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Brillo amarillo */
@keyframes glowYellow {
    0% {
        text-shadow: 0 0 5px #9b3d3d, 0 0 10px #9b3d3d;
    }

    70% {
        text-shadow: 0 0 15px #9b3d3d, 0 0 30px #9b3d3d;
    }

    100% {
        text-shadow: 0 0 5px #9b3d3d, 0 0 10px #9b3d3d;
    }
}

/* Brillo blanco */
@keyframes glowWhite {
    0% {
        text-shadow: 0 0 5px #ffffff, 0 0 10px #bbb;
    }

    70% {
        text-shadow: 0 0 15px #ffffff, 0 0 30px #eee;
    }

    100% {
        text-shadow: 0 0 5px #ffffff, 0 0 10px #bbb;
    }
}



@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo */
.clase-titulo .logo {
    height: auto;
    width: 650px;
    animation: fadeInScale 1.5s ease;
    filter: drop-shadow(0 0 25px rgba(154, 175, 247, 0.4));
    position: relative;
    top: -50px;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.clase-titulo .contenido {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    /* espacio entre título, logo y botón */
}

.contactarse {
    padding: 10px 28px;
    font-size: 18px;
    background-color: #ffffff;

    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
    transition: 0.3s ease;

}

.contactarse a {
    text-decoration: none;
    color: black;
}

.contactarse:hover {
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}


/* Indicador de scroll (mouse) */
.mouse {
    width: 26px;
    height: 45px;
    border: 2.5px solid #fff;
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.mouse:after {
    content: "";
    position: absolute;
    height: 6px;
    width: 6px;
    background-color: #fff;
    border-radius: 100%;
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
    animation: scrollMouse 1.6s infinite ease-in-out;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

@keyframes scrollMouse {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    50% {
        opacity: 0.3;
        transform: translate(-50%, 12px);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* ============================================
   SECCIÓN SERVICIOS
   ============================================ */
.services {
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);

}

.services h2 {
    font-size: 40px;
    margin-bottom: 50px;
    color: #8B0000;
    font-weight: 900;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.services h2::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, #8B0000 0%, #A60F0A 100%);
    border-radius: 3px;
    box-shadow: 0 3px 10px rgba(139, 0, 0, 0.3);
}

/* Grid de servicios 2x2 */
.services-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

/* Tarjetas de servicio */
.card {
    font-family: "Lato", sans-serif;
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.12);
    text-align: center;
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

/* Efecto de brillo que pasa */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.card:hover::before {
    left: 100%;
}

/* Hover en tarjetas */
.card:hover {
    transform: translateY(-15px) scale(1.02);
    background: linear-gradient(135deg, rgba(166, 15, 10, 0.95) 0%, rgba(139, 0, 0, 0.95) 100%);
    box-shadow: 0px 20px 45px rgba(139, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.2);
}

.card:hover h3 {
    color: #ffffff;
    transform: scale(1.05);
}

.card:hover p {
    color: rgba(255, 255, 255, 0.98);
}

.card:hover img {
    filter: brightness(0) invert(1);
    transform: scale(1.15) rotate(8deg);
}

/* Iconos de las tarjetas */
.card img {
    width: 75px;
    height: 80px;
    margin-bottom: 15px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    
}
.card .logo-car{
    width: 25%;
    height: 40%;
}


/* Títulos de las tarjetas */
.card h3 {
    font-size: 25px;
    color: #8B0000;
    margin-bottom: 12px;
    font-weight: 800;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

/* Texto de las tarjetas */
.card p {
    font-size: 20px;
    line-height: 1.5;
    margin: 0;
    color: #5a5a5a;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

/* ============================================
   SECCIÓN NOSOTROS
   ============================================ */
.nosotros {
    background-image: url("img/motor-fondo.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    position: relative;
}

.nosotros::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.88) 0%, rgba(26, 26, 26, 0.82) 100%);
    z-index: 0;
}

.nosotros-contenido {
    position: relative;
    z-index: 1;
    width: 88%;
    max-width: 1400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 90px;
}

/* Imagen circular */
.nosotros-img img {
    width: 500px;
    height: 500px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    border: 10px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.nosotros-img img:hover {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 20px 60px rgba(141, 159, 236, 0.3);
    border-color: rgba(141, 159, 236, 0.4);
}

/* Texto de nosotros */
.nosotros-texto h2 {
    font-size: 52px;
    font-weight: 900;
    color: white;
    margin-bottom: 35px;
    letter-spacing: 4px;
    position: relative;
    display: inline-block;
}

.nosotros-texto h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, #8d9fec 0%, #a6c0fe 100%);
    border-radius: 3px;
    box-shadow: 0 3px 10px rgba(141, 159, 236, 0.4);
}

.nosotros-texto p {
    font-size: 20px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    max-width: 900px;
    text-align: justify;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* ============================================
   SECCIÓN GALERÍA (CARRUSEL)
   ============================================ */
.carrusel-full {
    padding: 100px 25px;
    background: linear-gradient(180deg, #f8f8f8 0%, #ffffff 100%);
}

.titulo-carrusel {
    font-family: "Roboto", sans-serif;
    text-align: center;
    margin-bottom: 60px;
}

.titulo-fotos {
    font-size: 52px;
    font-weight: 900;
    color: #8B0000;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.titulo-fotos::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, #8B0000 0%, #A60F0A 100%);
    border-radius: 3px;
    box-shadow: 0 3px 10px rgba(139, 0, 0, 0.3);
}

.carrusel {
    width: 100%;
    overflow: hidden;
    border: 3px solid #ffffff;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
}

.carrusel-track {
    display: flex;
    width: calc(200%);
    animation: scroll 28s linear infinite;
}

.carrusel-track:hover {
    animation-play-state:running ;
}

.carrusel-track img {
    width: 280px;
    height: 200px;
    margin: 15px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carrusel-track img:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    z-index: 10;
    border-radius: 15px;
}

@keyframes scroll {
    0% {
        transform: translateX(-10%);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ============================================
   SECCIÓN TESTIMONIOS / RESEÑAS
   ============================================ */
.testimonio {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    text-align: center;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.testimonio h2 {
    font-size: 52px;
    margin-bottom: 60px;
    color: #ffffff;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
}

.testimonio h2::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, #8d9fec 0%, #a6c0fe 100%);
    border-radius: 3px;
    box-shadow: 0 3px 10px rgba(141, 159, 236, 0.4);
}

/* Contenedor del widget */
.testimonio .reseña {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 25px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    transform-origin: top center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover solo para la reseña */
.testimonio .reseña:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Obligamos a que los elementos internos del widget también tengan fondo blanco */
.testimonio .reseña * {
    background-color: white !important;
}

/* ============================================
   SECCIÓN MAPA / CONTACTO
   ============================================ */

.titulo-mapa {
    font-size: 52px;
    font-weight: 900;
    color: #8B0000;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 900;
}

.titulo-mapa::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, #8B0000 0%, #A60F0A 100%);
    border-radius: 3px;
    box-shadow: 0 3px 10px rgba(139, 0, 0, 0.3);
}


.map {
    padding: 100px 20px;
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
}

/*
.titulo-mapa {
    text-align: center;
    font-size: 52px;
    margin-bottom: 50px;
    color: #fa0000;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative
} */




.mapa {
    width: 100%;
    height: 600px;

}


/* ============================================= */
/* FORMULARIO */
/* ============================================ */

/* ----------------------- */
/* ESTILOS DEL FORMULARIO  */
/* ----------------------- */

form {
    width: 650px;
    max-width: 1000px;
    margin: 0 auto;
    /* ✔ centrado sin bajar */
    padding: 25px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 0px 4px 2px #af6e6e;
    display: flex;
    flex-direction: column;
    gap: 18px;
}


form h2 {
    text-align: center;
    font-size: 28px;
    font-family: "Raleway", sans-serif;
    color: #000;
    margin-bottom: 10px;
}

/* Etiquetas */
form label {
    font-size: 16px;
    font-weight: 500;
    color: #000;
}

/* Inputs */
form input,
form textarea,
form select {
    width: 100%;
    padding: 12px;
    border: none;
    background: #f0f0f0;
    border-radius: 5px;
    font-size: 15px;
    font-family: "Raleway", sans-serif;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* Hover / Focus igual que en iconos y botones */
form input:focus,
form textarea:focus,
form select:focus {
    outline: none;
    box-shadow: 0px 0px 4px 2px #e0ccbf;
    transform: scale(1.01);
}

/* Botón del formulario */
form button {
    width: 100%;
    padding: 12px;
    background: #6f6dec;
    border: none;
    border-radius: 15px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* Hover del botón igual al resto del sitio */
form button:hover {
    background-color: #858df5;
    box-shadow: 0px 0px 4px 2px #af6e6e;
    transform: scale(1.05);
}

/* Textarea */
form textarea {
    resize: none;
    height: 140px;
}

/* Contenedor general del formulario si lo necesitás centrar */
.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
}

/* ================================================= */
/* CONTENEDOR DEL TEXTO FORMULARIO */
/* ================================================= */

.contacto-container {
    width: 100%;
    margin: 120px auto 0 auto;
    /* ✔ esto baja A TODO el grupo */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}


.contacto-form {
    flex: 1.2;
}

.contacto-info {
    flex: 0.8;
    margin-top: 20px;
    font-family: "Raleway", sans-serif;
}

.contacto-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #fa0000;
}

.contacto-info p {
    font-size: 16px;
    line-height: 1.5;
}



/* ============================================
   FOOTER
   ============================================ */


.footer {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    padding: 60px 20px 10px;
    /* menos padding abajo */
    color: white;
    text-align: center;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.6);
    margin-top: 50px;
}

.footer-contenido {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-logo {
    width: 260px;
    /* ancho base del logo */
    height: 120px;
    /* alto fijo */
    overflow: hidden;
    /* evita que el scale genere espacio extra */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* LOGO */
.footer-logo img {
    width: 100px;
    height: auto;
    transform: scale(3.0);
    /* Se agranda visualmente */
    transform-origin: center center;
    /* filter: drop-shadow(0 0 12px rgba(255,255,255,0.2));*/
}

.footer-logo p {
    margin-top: 12px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

/* BLOQUES DE INFO */
.footer-info h3,
.footer-redes h3 {
    font-size: 22px;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #8d9fec;
}

.footer-info p {
    margin: 8px 0;
    font-size: 16px;
}

.footer-info i {
    margin-right: 10px;
    color: #8d9fec;
}

/* ICONOS DE REDES */
.footer-redes .icons a {
    font-size: 32px;
    margin-right: 18px;
    color: white;
    transition: 0.3s ease;
}

.footer-redes .icons .fa-facebook:hover {
    color: #3b5998;
    transform: translateY(-5px) scale(1.15);
}

.footer-redes .icons .fa-whatsapp:hover {
    color: #128C7E;
    transform: translateY(-5px) scale(1.15);
}

.footer-redes .icons .fa-instagram:hover {
    color: #e1306c;
    transform: translateY(-5px) scale(1.15);
}

/* COPYRIGHT */
.footer-copy {
    margin-top: 40px;
    font-size: 15px;
    opacity: 0.6;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

.powered {
    font-size: 12px;
    opacity: 0.35;
    text-align: right;
    margin-top: 5px;
}

.powered a {
    text-decoration: none;
    color: gray;
}





/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets grandes */
@media (max-width: 1200px) {
    
    .services-container {
        gap: 35 px;
        width: 90%;
    }

    .nosotros-contenido {
        gap: 60px;
    }

    .nosotros-img img {
        width: 400px;
        height: 400px;
    }
}

/* Tablets */
@media (max-width: 1024px) {

    .services-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .nosotros-contenido {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .nosotros-img img {
        width: 350px;
        height: 350px;
    }

    .nosotros-texto p {
        max-width: 100%;
        text-align: center;
    }

    .nosotros-texto h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    
}

/* Móviles grandes */
@media (max-width: 768px) {


    .titulo {
        font-size: 45px;
        top: 50px;
    }
    .info{
        font-size: 16px;
    }

    .logo {
        width: 150px;
        max-width: none !important;
        height: auto;
        display: block;
       margin-bottom: 150px;
    }
    .contactarse{
    margin-top: -190px;
    }

    .services h2,
    .titulo-fotos,
    .map h2,
    .testimonio h2,
    .nosotros-texto h2 {
        font-size: 48px;
    }

    .services-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .card {
        padding: 40px 25px;
    }

    .nosotros-img img {
        width: 280px;
        height: 280px;
    }

    .carrusel-track img {
        width: 220px;
        height: 160px;
        margin: 12px;
    }

    nav ul li a {
        font-size: 30px;
    }

    nav ul {
        gap: 40px;
    }

    /* FORMULARIO */
    .contacto-container {
        flex-direction: column;
        /* 👉 UNO DEBAJO DEL OTRO */
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .contacto-form {
        order: 1;
        /* 👉 FORMULARIO ARRIBA */
        width: 100%;
        max-width: 450px;
    }

    .contacto-form form label {
        font-size: 15px;
    }

    .contacto-form form input,
    .contacto-form form textarea {
        font-size: 15px;
        padding: 10px;
    }

    .contacto-form form button {
        font-size: 17px;
        padding: 10px;
    }

    /* INFO */
    .contacto-info {
        order: 2;
        /* 👉 PASA ABAJO */
        width: 100%;
        max-width: 450px;
    }

    .contacto-info h3 {
        font-size: 22px;
    }

    .contacto-info p {
        font-size: 15px;
    }


    /* Menú desplegable */
    nav ul {
        list-style: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 1200%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 55px;
        margin: 0;
        padding: 0;
        backdrop-filter: blur(15px);
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(26, 26, 26, 0.92) 100%);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-30px);
        transition: opacity 0.45s ease, transform 0.45s ease;
    }

    /* Cuando se abre el menú */
    nav ul.show {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    /* Items del menú */
    nav ul li a {
        top: -50px;
        display: inline-block;
        color: white;
        text-decoration: none;
        font-size: 35px;
        font-weight: 600;
        padding: 15px 30px;
        position: relative;
        transition: transform 0.5s ease, color 0.4s ease;
    }

    /* Efecto underline animado */
    nav ul li a::before {
        content: '';
        position: absolute;
        bottom: 10px;
        left: 50%;
        width: 0px;
        height: 3px;
        background: linear-gradient(90deg, #8d9fec 0%, #a6c0fe 100%);
        transform: translateX(-50%);
        transition: width 0.4s ease;
        border-radius: 2px;
    }

    nav ul li a:hover::before {
        width: 70%;
    }

    nav ul li a:hover {
        transform: scale(1.15);
        color: #8d9fec;
    }

.footer-contenido {
        display: flex;
        flex-direction: column;
        align-items: center;   /* Centra horizontal */
        text-align: center;    /* Centra el texto */
    }

    .footer-logo img {
        width: 110px;  /* Ajuste opcional, podés cambiarlo */
    }

    .footer-info h3,
    .footer-redes h3 {
        text-align: center;
    }

    .footer-info p {
        text-align: center;
    }

    .footer-redes .icons {
        display: flex;
        justify-content: center;
        gap: 18px;
    }

    .footer-copy,
    .powered {
        text-align: center;
    }

}



/* Móviles pequeños */
@media (max-width: 480px) {
.logo-principal{
        width: 50px;
    }


    .clase-titulo .titulo {
        font-size: 35px;
        bottom: -40px;
    }

    .clase-titulo .logo {
        width: 480px;
    }

    .services h2,
    .titulo-fotos,
    .map h2,
    .testimonio h2 {
        font-size: 30px;
    }

    .nosotros-texto h2 {
        font-size: 32px;
    }

    .card {
        padding: 35px 20px;
    }

    .card h3 {
        font-size: 22px;
    }

    .card p {
        font-size: 16px;
    }

    .nosotros-img img {
        width: 240px;
        height: 240px;
    }

    .nosotros-texto p {
        font-size: 17px;
    }
    .carrusel-track {
    animation: scroll 10s linear infinite;
}

    .carrusel-track img {
        width: 180px;
        height: 130px;
        margin: 10px;
    }

    nav ul li a {
        font-size: 26px;
    }

    footer .logo-text {
        font-size: 24px;
    }

    .map-container {
        height: 350px;
    }

    /* FORMULARIO */
    .contacto-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 35px;
    }

    .contacto-form form {
        width: 100%;
        max-width: 360px;
        /* 🔥 aún más chico */
        margin: 0 auto;
        padding: 18px;
    }

    .contacto-form form label {
        font-size: 14px;
    }

    .contacto-form form input,
    .contacto-form form textarea {
        font-size: 14px;
        padding: 9px;
    }

    .contacto-form form button {
        font-size: 16px;
        padding: 9px;
    }

    /* INFO */
    .contacto-info h3 {
        font-size: 20px;
    }

    .contacto-info p {
        font-size: 14px;
        line-height: 1.4;
    }
}