/* Estilos globales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    height: 100px;
}

/* Compensar header fijo */
body {
    background-color: black;
    padding-top: 100px;
    min-height: 100vh;
    color: white;
}

/* Logo */
.logo {
    height: 60px;
    width: auto;
}

/* Menú de navegación */
.nav-list {
    list-style-type: none;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-list li a {
    text-decoration: none;
    color: white;
}

.nav-list li a:hover {
    color: orange;
}

/* Enlace activo */
nav a.active {
    color: #d95514 !important;
    font-weight: 600;
}

/* Dropdown */
.dropbtn {
    background-color: rgba(53, 141, 196, 1);
    color: white;
    padding: 8px 12px;
    font-size: 15px;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.dropbtn:hover {
    background-color: rgba(217, 85, 20, 1);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.95);
    min-width: 160px;
    z-index: 1001;
    right: 0;
    top: 100%;
    border-radius: 5px;
    padding: 10px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.dropdown-content a {
    color: white !important;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 14px !important;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: rgba(217, 85, 20, 1);
    color: white !important;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Botones de menú móvil */
.Abrir-menu,
.Cerrar-menu {
    display: none;
}

/* Hero Section */
.hero-agencias {
    position: relative;
    height: 60vh;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 50px;
}

.hero-agencias img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.hero-text {
    position: absolute;
    text-align: center;
    width: 100%;
    top: 15%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-text p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 10px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-text h2 {
    font-size: 1.8rem;
    margin: 10px auto;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-text h3 {
    font-size: 1.3rem;
    margin: 10px auto 20px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Tarjetas de agencias */
.agencias-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 45px;
    padding: 0 10px 50px;
    max-width: 1190px;
    margin: 0 auto;
}

.agencia-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    
}

.agencia-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(255, 140, 0, 0.2);
}

.agencia-img {
    height: 250px;
    overflow: hidden;
}

.agencia-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.agencia-card:hover .agencia-img img {
    transform: scale(1.1);
}

.agencia-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.agencia-content h3 {
    color: #FF8C00;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.agencia-info {
    margin-bottom: 20px;
    flex-grow: 1;
}

.agencia-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.agencia-info i {
    color: #FF8C00;
    margin-right: 10px;
    width: 20px;
}

.agencia-boton {
    display: inline-block;
    background-color: #FF8C00;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    align-self: center;
    margin: 20px auto 0;
}

.agencia-boton:hover {
    background-color: #ff9900;
}

/* Sección de información adicional */
.info-agencias {
    background-color: #1a1a1a;
    padding: 60px 20px;
    text-align: center;
    margin: 50px 0;
}

.info-agencias h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #fffaf3;
}

.info-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.info-item {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}

.info-item i {
    font-size: 3rem;
    color: #FF8C00;
    margin-bottom: 20px;
}

.info-item h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Footer */
.footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 30px;
    width: 100%;
    background: radial-gradient(circle, rgba(217, 85, 20, 1) 47%, rgba(4, 2, 15, 1) 100%);
}

.footer-iconos {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    padding-top: 10px;
    grid-column: 3;
    padding-right: 20px;
}

.h {
    text-align: center;
    margin: 10px 0;
    color: black;
}

.h h6 {
    text-align: center;
    margin: 5px 0;
    font-weight: normal;
    color: black;
}

.h h6.uno {
    font-size: 14px;
    padding-left: 30px;
}

.h h6.dos {
    font-size: 14px;
    margin-top: 8px;
}

.h h3 {
    text-align: center;
    margin-bottom: 15px;
}

.footer-iconos a {
    text-decoration: none;
    font-size: 28px;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    background: #314652;
    color: #f1f1f1;
    border-radius: 50%;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease-in-out;
}

.footer-iconos a:hover {
    transform: scale(1.2);
}

/* Media Queries para móviles */
@media screen and (max-width: 960px) {
    .Abrir-menu,
    .Cerrar-menu {
        display: block;
        border: 0;
        font-size: 1.25rem;
        background-color: transparent;
        cursor: pointer;
        color: white;
    }

    .nav {
        opacity: 0;
        visibility: hidden;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 2rem;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.95);
        padding: 2rem;
        box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.95);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        text-align: center;
        width: 100%;
        min-height: min-content;
    }

    .nav.visible {
        opacity: 1;
        visibility: visible;
    }

    .nav-list li a {
        color: white;
        font-size: 1.2rem;
        padding: 10px 20px;
    }

    .Cerrar-menu {
        position: absolute;
        top: 2rem;
        right: 2rem;
    }

    .dropdown {
        position: relative;
    }

    .dropdown-content {
        display: none;
        position: static;
        background-color: transparent;
        box-shadow: none;
        width: 100%;
        margin-top: 10px;
    }

    .dropdown-content.mobile-visible {
        display: block !important;
    }

    .dropdown-content a {
        padding: 10px 15px;
        font-size: 1rem !important;
        color: #ccc !important;
        border-left: 2px solid #d95514;
        margin: 5px 0;
    }

    .dropdown-content a:hover {
        background-color: transparent !important;
        color: white !important;
    }

    .dropbtn {
        display: none;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .info-agencias h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 1.5rem;
    }

    .agencias-container {
        padding: 0 20px 50px;
    }

    .hero-agencias {
        height: 40vh;
        margin-bottom: 30px;
    }

    .info-agencias {
        padding: 40px 20px;
        margin: 30px 0;
    }

    .info-agencias h2 {
        font-size: 2rem;
    }

    .info-item {
        min-width: 200px;
    }

    /* Footer para móviles */
    .footer {
        grid-template-columns: 1fr;
    }

    .footer > div:not(.footer-iconos) {
        display: none;
    }

    .footer-iconos {
        grid-column: 1;
        justify-content: center;
        width: 100%;
    }
}

@media screen and (max-width: 650px) {
    .hero-text p,
    .hero-text h1 {
        display: none;
    }

    .hero-text h3 {
        margin: 10px;
    }
}
