*{
    font-family: "Inter", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    overflow-x: hidden;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
}

.autoshow{
    animation: text-appear both;
    animation-timeline: view();
    animation-range: entry 20% cover 100vh;
}

@keyframes text-appear{
    from{
        opacity: 0;
        transform: translateY(100px);
    }

    to{
        opacity: 1;
        transform: translateY(0);
    }
}

.menucontainer {
    max-width: 1200px; 
    margin: 0 auto;
}

.header {
  background-color: #ffffff;
  background-size: 2550px; 
  background-attachment: scroll;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


.Menu {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 15px; 
    background-color: #ffffffdc; 
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
    z-index: 1000;
}

.logo {
    width: 60px; 
    height: auto;
    min-width: 60px; 
}

.Menu .navbar {
    flex: 1; 
    display: flex; 
    justify-content: center; 
}

.Menu .navbar ul {
    display: flex;
    list-style: none;
    gap: 20px; 
}

.Menu .navbar ul li a {
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    color: #333; 
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    padding: 5px 0; 
    transition: color 0.3s;
}

.Menu .navbar ul li a:hover {
    color: #0094d8;
}

/* ❌ Se ocultan todos los elementos de menú hamburguesa */
#menu,
input[type="checkbox"],
.menuicon,
.Menu label {
    display: none;
}

.search {
    width: 25px;
    height: auto;
    min-width: 25px; 
    transition: transform 0.3s;
}

.search:hover {
    transform: scale(1.1);
}


.slider-frame {
  position: relative;
    width: 100%;
    max-width: 1300px;
    overflow: hidden;
    border-radius: 10px;
    background-color: #f8f8f8; 
}

.slider-frame ul {
    display: flex;
    width: 300%;
    animation: slide 15s infinite alternate ease-in-out;
}

.slider-frame li {
    list-style: none;
    width: 100%;
    position: relative;
}

/* 🟢 FIX: object-fit: contain para mostrar la imagen completa */
.slider-frame img {
    width: 100%;
    display: block;
    object-fit: contain; 
    height: auto;
}

.btn1 {
    display: block;
    position: absolute;
    top: 70%; 
    left: 20%; 
    transform: translate(-50%, -50%);
    width: 180px; 
    padding: 12px 0; 
    margin: 30px auto;
    text-align: center;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    border-radius: 90px;
    background-color: #0094d8;
    color: #eff3d7;
    text-decoration: none;
    font-weight: 900;
    font-size: 18px; 
    transition: background-color 0.3s;
}

.btn1:hover {
    background-color: #0f597b;
}

@keyframes slide {
    0% { margin-left: 0%; }
    33.33% { margin-left: 0%; }
    38.34% { margin-left: -100%; }
    66.66% { margin-left: -100%; }
    71.67% { margin-left: -200%; }
    100% { margin-left: -200%; }
}


.infoclass {
    margin: 80px 0; 
    text-align: center;
    margin-top: 20%; 
    margin-bottom: 20%; 
}

.info h1 {
    text-transform: uppercase; 
    color: #0094d8;
    font-size: 45px; 
    font-weight: 900;
    margin-bottom: 10px; 
}

.info p {
    text-transform: capitalize;
    color: #4e4d4d;
    font-size: 16px; 
    font-weight: 700;
    max-width: 1000px;
    margin: 0 auto;
}


.categories {
    background-color: #eff3d7;
    padding: 60px 20px; 
    text-align: center;
    margin-bottom: 15%; 
}

.categorias {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.categorias h2 {
    color: #0094d8;
    font-size: 50px; 
    font-weight: 700;
    text-transform: capitalize;
    margin-bottom: 40px; 
}

.zones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; 
    margin-bottom: 40px; 
}

.cate-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.cate-group img {
    width: 250px; 
    height: 250px; 
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cate-group img:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.cate-group h3 {
    font-size: 25px; 
    color: #0094d8;
    font-weight: 700;
    text-transform: capitalize;
    text-align: center;
    margin-top: 15px;
    transition: transform 0.3s, text-decoration 0.3s;
}

.cate-group h3:hover {
    transform: scale(1.1);
    text-decoration: underline;
}

.btn2 {
    display: inline-block;
    width: 180px; 
    padding: 12px 0; 
    text-transform: uppercase;
    text-align: center;
    border-radius: 90px;
    background-color: #0094d8;
    color: #eff3d7;
    text-decoration: none;
    font-weight: 900;
    font-size: 18px; 
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s, box-shadow 0.3s;
}

.btn2:hover {
    background-color: #0f597b;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.questions {
    margin: 80px 0; 
    text-align: center;
    position: relative;
    margin-bottom: 15%; 
}

.questions img {
    width: 90%;
    max-width: 900px;
    margin: 0 auto 30px;
    display: block;
}

.btn3 {
    display: inline-block;
    width: 180px; 
    left: 40%;
    position: absolute;
    top: 60%;
    padding: 12px 0; 
    text-transform: uppercase;
    text-align: center;
    border-radius: 90px;
    background-color: #0094d8;
    color: #eff3d7;
    font-weight: 800;
    font-size: 18px;
    text-decoration: none;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.btn3:hover {
    background-color: #0f597b;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}


.last {
    margin-top: 80px; 
}

.encabezado {
    background-color: #eff3d7;
    text-align: center;
    color: #0094d8;
    padding: 10px 1px; 
}

.encabezado h5 {
    font-size: 30px; 
    text-transform: uppercase;
    font-weight: bolder;
    margin-bottom: 5px;
}

.encabezado h4 {
    font-size: 50px; 
    text-transform: uppercase;
    font-weight: bolder;
}

.items {
    background: #0094d8;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; 
    padding: 40px 1px; 
    place-items: center;
}

.services1,
.services2,
.services3 {
    text-align: center;
    padding: 15px; 
    border-radius: 15px;
    height: 100%; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.services1 img,
.services2 img,
.services3 img {
    width: 80px;
    margin-bottom: 15px;
}

.services1 h3,
.services2 h3,
.services3 h3 {
    font-size: 25px; 
    color: aliceblue;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.services1 p,
.services2 p,
.services3 p {
    font-size: 18px;
    color: aliceblue;
    font-weight: 600;
    line-height: 1.5;
}

.footblack {
    background-color: #3d3c3c;
    color: #ecebeb;
    padding: 40px 10px; 
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.contactos,
.acerca {
    flex-basis: 25%;
    min-width: 250px;
    margin-bottom: 25px; 
}

.contactos h4,
.acerca h4 {
    font-size: 22px; 
    font-weight: 700;
    color: aliceblue;
    text-transform: capitalize;
    margin-bottom: 12px;
}

.plataforma,
.acerca a {
    color: #ecebeb;
    font-weight: 500;
    font-size: 14px; 
    text-transform: capitalize;
    text-decoration: none;
    margin-bottom: 5px;
}

.usuario {
    font-size: 14px; 
    text-transform: capitalize;
    color: #0095f6;
    font-weight: 500;
    display: inline;
    text-decoration: underline;
}

.usuario:hover {
    color: #2100f8;
}

.acerca a:hover {
    color: #fdfcfc;
}

.logo1 {
    flex-basis: 40%;
    text-align: center;
    margin-bottom: 25px; 
}

.logo1 img {
    width: 400px;
}

.svgs {
    flex-basis: 100%;
    display: flex;
    justify-content: center;
    gap: 20px; 
    margin-top: 15px; 
}

.svgs img {
    width: 35px; 
}


/* =======================================
   REGLAS RESPONSIVE (Móvil y Tablet)
   ======================================= */

@media (max-width: 968px) {
     /* === HEADER y SLIDER === */
    .header {
        min-height: 70vh;
        background-size: contain; 
    }
    
    /* Menú Compacto y Siempre Visible */
    .Menu {
        padding: 4px 5px; 
        top: 10px;
    }
    .logo {
        width: 40px; 
        min-width: 40px;
    }
    .search {
        width: 20px;
        min-width: 20px; 
    }
    .Menu .navbar {
        display: flex;
        justify-content: center;
    }
    .Menu .navbar ul {
        flex-direction: row; 
        gap: 5px; 
        padding-top: 0;
    }
    .Menu .navbar ul li a {
        font-size: 10px; 
    }
    
    /* FIX: Altura del slider y margen inferior para el botón */
    .slider-frame {
        min-height: 250px; 
        height: auto;
        margin-bottom: 20px; 
    }

    /* FIX CRÍTICO: Botón del Slider - Desactivamos posición absoluta y lo centramos */
    .btn1 {
        position: absolute; 
        width: 100px; 
        padding: 8px 0;
        font-size: 10px;
        margin-left: -13%;
        margin-top: 2%;
        z-index: 1001;
        transform: none; /* Quitamos la transformación */
    }
    .infoclass {
        margin-bottom: 20%; /* Menos margen en móvil */
    }
    .info h1 {
        font-size: 30px;
    }
    .info p {
        font-size: 14px;
        padding: 0 10px;
    }
    
    /* === SECCIÓN DE CATEGORÍAS === */
    .categorias h2 {
        font-size: 40px;
    }
    /* Las categorías se apilan verticalmente */
    .zones {
        flex-direction: column; 
        align-items: center;
        gap: 20px;
    }
    .cate-group img {
        width: 80%; 
        max-width: 300px;
        height: auto; 
    }

    /* Botón de Categorías más pequeño */
    .btn2 {
        width: 130px; 
        padding: 10px 0;
        font-size: 14px;
    }


    /* === SECCIÓN DE PREGUNTAS === */
    /* 🟢 FIX: Botón de Preguntas más pequeño y centrado */
    .questions {
        margin-bottom: 50px;
    }
    .btn3 {
        width: 100px; /* Reducción de ancho */
        padding: 7px 0;
        font-size: 10px;
        top: 60%;
        left: 50%; /* Centrado en 50% */
        transform: translateX(-50%); /* Ajuste final para centrado perfecto */
    }

    /* === SECCIÓN DE SERVICIOS === */
    .encabezado h4 {
        font-size: 30px;
    }
    .items {
        grid-template-columns: 1fr; 
        padding: 20px 10px;
    }
    .services1 h3, .services2 h3, .services3 h3 {
        font-size: 20px;
    }
    .services1 p, .services2 p, .services3 p {
        font-size: 16px;
    }


    /* === FOOTER === */
    /* Los elementos del footer se apilan verticalmente y se centran */
    .footblack {
        flex-direction: column;
        align-items: center;
        padding: 20px 10px;
    }
    .contactos,
    .acerca,
    .logo1 {
        width: 90%;
        min-width: unset;
        text-align: center;
        margin-bottom: 20px;
    }
    .logo1 img {
        width: 250px;
    }
}