/* estilos.css */
: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 */
    transition: transform 0.6s ease;
}
.logo:hover {
    transform: rotatey(360deg);
}

.title {
    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;
    position: relative; /* Añadido para el posicionamiento del dropdown */
}

.ul-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    font-size: 22px;
}

.ul-nav a:hover {
    color: var(--green-light);
}

/* Estilos para el Dropdown */
.dropdown {
    position: relative;
    display: inline-block; /* Permite que el ancho se ajuste al contenido */
}

.dropdown-content {
    display: none; /* Oculto por defecto */
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    text-align: center; /* Centra los enlaces del desplegable */
    left: 50%; /* Centra horizontalmente */
    transform: translateX(-50%); /* Ajuste para el centrado */
    border-radius: 20px;
    overflow: hidden; /* Asegura que los bordes redondeados se vean bien */
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 19px; /* Ajusta el tamaño de fuente para los enlaces del desplegable */
    white-space: nowrap; /* Evita que el texto se rompa */
    border-radius: 20px;
}

.dropdown-content a:hover {
    background-color: var(--green-light);
    color: white;
    padding: 10px 14px;
   
}

.dropdown:hover .dropdown-content {
    display: block; /* Muestra el menú desplegable al pasar el ratón */
}

/* Flecha hacia abajo para el menú desplegable */
.arrow-down {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--text-color);
    margin-left: 8px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.dropdown:hover .arrow-down {
    border-top-color: var(--green-light); /* Cambia el color de la flecha al hacer hover */
    transform: rotate(180deg); /* Gira la flecha hacia arriba */
}


main {
  max-width: 800px;
  margin: 2em auto;
  padding: 0 1em;
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

h1, h2 {
  color: var(--green-dark);
}

ul {
  padding-left: 1.2em;
}

.review-container {
    width: 300px;
    margin: 20px auto;
    padding: 20px 20px;
    text-align: center;
    background: linear-gradient(45deg, #1de34f 0%, #eff5f1, #e06546 100%);
    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: rotate(3deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.dgt-notas {
    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;
}
.icono-dgt {
    width: 30px;
    height: 30px;
    border-radius: 30px;
    margin-right: 10px;
}
.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: 165px;
    height: 95px;
    border-radius: 15px;
}
.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;
    }
 .main-review {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 20px;
 }

    .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;
    }
    
    .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: 400px;
    }
    
    .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;
    }
}

/* Media query para pantallas más pequeñas (móviles) */
@media screen and (max-width: 674px) {
    .dropdown-content {
        position: static; /* Cambia a estático para que ocupe espacio normal */
        box-shadow: none; /* Elimina la sombra para móviles */
        background-color: transparent; /* Fondo transparente */
        text-align: center; /* Asegura que los enlaces internos estén centrados */
        transform: none; /* Elimina la transformación */
        width: 100%; /* Ocupa todo el ancho */
        min-width: unset; /* Elimina el ancho mínimo */
    }

    .dropdown-content a {
        padding: 8px 0; /* Ajusta el padding para móviles */
        font-size: 18px; /* Ajusta el tamaño de fuente para móviles */
        text-align: center; /* Centra el texto */
    }

    .dropdown:hover .dropdown-content {
        display: flex; /* Muestra el menú desplegable en un diseño de columna */
        flex-direction: column;
        align-items: center; /* Centra los elementos */
    }

    .arrow-down {
        border-top-color: var(--text-color); /* Color de la flecha en móviles */
    }

    .dropdown:hover .arrow-down {
        border-top-color: var(--green-light);
    }
}