
/* --- Variables y estilos base --- */
:root {
    --green-dark: rgb(13, 104, 48);
    --green-light: #0a8e41;
    --text-color: #1d0202;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --hover-effect: translateY(-6px);
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    color: var(--text-color);
}

/* --- Navbar --- */
.navbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px;
}

.logo {
    display: none; /* Oculto en móviles, se muestra en desktop */
}

.title {
    color: var(--green-dark);
    font-size: 30px;
    margin: 10px 0 10px 20px;
}

.hamburger {
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
}

.ul-nav {
    display: none;
    list-style: none;
    flex-direction: column;
    padding: 0;
    width: 100%;
}

.ul-nav.show {
    display: flex;
}

.ul-nav li {
    margin: 10px 0;
    text-align: center;
}

.ul-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    font-size: 22px;
}

.ul-nav a:hover {
    color: var(--green-light);
}

/* --- Carousel --- */
/* --- Carousel --- */
.carousel {
    overflow: hidden; /* Esto es crucial para ocultar las imágenes que no están en la vista */
    width: 100%; /* El carrusel ocupa todo el ancho disponible */
    height: 300px; /* Mantén la altura deseada */
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
    /* El ancho total del contenedor de imágenes debe ser (número de imágenes * 100vw) */
    width: 300vw; /* Para 3 imágenes, es 3 * 100vw */
    height: 100%;
}

.carousel-images img {
    /* Cada imagen individual debe ocupar exactamente 100vw de ancho */
    width: 100vw; /* <-- ¡Este es el cambio clave! */
    height: 100%;
    object-fit: cover;
    flex-shrink: 0; /* Evita que las imágenes se encojan */
}

/* --- Tarjetas (Cards) --- */
.enunciado {
    text-align: center;
    color: var(--green-dark);
    margin: 40px 0 20px;
    font-size: 26px;
}

.container-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.card {
    width: 90%;
    height: 360px;
    max-width: 22rem;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease-in-out;
    border: 1px solid #e0e6ed;
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
}

.card:hover {
    transform: var(--hover-effect);
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.card-title {
    font-size: 25px;
    margin: 10px 0;
}

.card-body {
    padding: 10px;
}

/* --- Sección de Servicios --- */
.container-permiso {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 90%;
    margin: 40px auto;
    padding: 20px;
    background-image: url("img/Elegir-la-autoescuela-ideal.jpg");
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.permiso, .requisitos {
    width: 100%;
    background-color: #ffffffeb;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    border: 1px solid #dcdcdc;
}
h3, h4 {
    color: var(--green-dark);
}

.h1-servicios {
    font-size: 26px;
    font-weight: bold;
    color: var(--green-dark);
    margin-bottom: 15px;
    text-align: center;
    
}

.container-servicios {
    width: 90%;
    height: auto;
    margin: 40px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.223);
    border: 1px solid #e0e6ed94;
    border-radius: 15px;
    background-image: url('img/aula-autoescuela.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px;
}

.Servicios {
    background-color: #e7e9edb4;
    width: 100%;
    max-width: 270px;
    padding: 20px;
    border-radius: 20px;
}

/* --- Enlaces de Aplicaciones y Reseñas --- */
.app-reviews-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
}

.containe_google {
    width: 90%;
    max-width: 250px;
    height: auto;
    padding: 20px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease-in-out;
    border: 1px solid #e0e6ed;
    border-radius: 15px;
}

.containe_google:hover {
    transform: var(--hover-effect);
}

.app-link {
    display: block;
    padding: 15px 0;
    transition: transform 0.5s;
}

.app-link:hover {
    transform: scale(1.2);
}

.review-container {
    width: 90%;
    max-width: 480px;
    padding: 30px 20px;
    text-align: center;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border: 1px solid #e0e6ed;
}

.review-container:hover {
    transform: var(--hover-effect);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.google-review-button {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(45deg, #4285F4 0%, #34a853 100%);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 25px;
    transition: all 0.5s ease;
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.4);
    letter-spacing: 0.5px;
}

.google-review-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(66, 133, 244, 0.6);
    background: linear-gradient(45deg, #3367D6 0%, #2f8c47 100%);
}

.icono-google {
    border-radius: 20px;
    padding-right: 5px;
}

/* --- Footer --- */
.footer {
    background: #092d0a;
    color: #fff;
    padding: 30px 20px;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-column {
    margin: 10px;
}

.footer-column h3 {
    margin-bottom: 10px;
}

.footer-column p {
    margin: 5px 0;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column a {
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
    transition: font-size 0.3s;
}

.footer-column a:hover {
    font-size: 1.1em;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

.ticktok {
    width: 55px;
    height: 55px;
}

.telefono {
    color: aliceblue;
    text-decoration: none;
    margin-bottom: 10px;
}
.map {
    width: 180px;
    height: 100px;
    border-radius: 10px;
}
.copyright {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
}

/* --- Responsive para Tablet y Desktop (a partir de 651px) --- */
@media screen and (min-width: 675px) {
    .navbar {
        justify-content: space-between;
    }

    .logo {
        display: block;
        width: 80px;
        height: 80px;
        margin-left: 25px;
        border: 4px solid var(--green-dark);
        border-radius: 50px;
    }

    .title {
        margin-right: auto;
        margin-left: 20px;
        font-size: 45px;
    }

    .hamburger {
        display: none;
    }

    .ul-nav {
        display: flex !important;
        flex-direction: row;
        width: auto;
    }

    .ul-nav li {
        margin: 10px 20px;
    }

    .carousel {
        height: 460px;
    }
    
    .container-card {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 50px;
        justify-content: center;
    }

    .card {
        max-width: 22rem;
    }

    .container-permiso {
        flex-direction: row;
        justify-content: center;
        gap: 40px;
    }

    .permiso, .requisitos {
        width: 45%;
    }

    .container-servicios {
        height: 450px;
        padding-left: 50px;
    }
    
    .Servicios {
        width: 270px;
        height: 410px;
    }

    .app-reviews-section {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
        gap: 50px;
    }

    .contenedor-iconos {
        width: 250px;
    }

    .review-container {
        width: 480px;
    }
    
    .footer-container {
        flex-direction: row;
        justify-content: space-around;
        align-items: flex-start;
        flex-wrap: wrap;
        max-width: 1200px;
        margin: auto;
    }

    .footer-column {
        flex: 1;
        min-width: 200px;
        margin: 10px;
        text-align: left;
    }

    .social-links {
        justify-content: flex-start;
    }
}
