@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap");

:root
{
    --white: #f9f9f9;
    --green: #EF4B24;
    --green-light: #f49954;
    --black: #36383F;
    --grey: #85888C;
}

*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body
{
    font-family: "Poppins", sans-serif;
}

a
{
    text-decoration: none;
}

ul
{
    list-style: none;
}

.header
{
    background: linear-gradient(180deg, #EF4B24, #f49954);
    box-shadow: 1px 1px 5px 0px var(--grey);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 99999;
}

.logo
{
    display: inline-block;
    color: var(--white);
    font-size: 60px;
    margin-left: 10px;
}



.nav
{
    width: 100%;
    height: 100%;
    position: relative;
    background-color: var(--green);
    overflow: hidden;
    max-height: 0;
    transition: max-height .5s ease-out;
}

.menu a
{
    display: block;
    padding: 30px;
    color: var(--white);
}

.menu a:hover
{
    background-color: var(--green-light);
}

.hamb
{
    cursor: pointer;
    float: right;
    padding: 40px 20px;
}


.hamb-line 
{
    background: var(--white);
    display: block;
    height: 2px;
    position: relative;
    width: 24px;
    
}

.hamb-line::before,
.hamb-line::after
{
    background: var(--white);
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}

.hamb-line::before
{
    top: 5px;
}

.hamb-line::after
{
    top: -5px;
}

.side-menu 
{
    display: none;
}

.side-menu:checked ~ nav
{
    max-height: 100%;
}

.side-menu:checked ~ .hamb .hamb-line 
{
    background: transparent;
}

.side-menu:checked ~ .hamb .hamb-line::before 
{
    transform: rotate(-45deg);
    top:0;
}

.side-menu:checked ~ .hamb .hamb-line::after 
{
    transform: rotate(45deg);
    top:0;
}

html {
    scroll-behavior: smooth;
}

/*Menu sucursales*/
.categoria {
    width: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
    
}

.catimg {
    
    width: 60px;
    height: 50px;
    width: 100%;
    height: 100%;
    border-radius: 60px;
}

.catul {
    margin-top: 20px;
    margin-left: 150px;
    margin-right: 150px;
    margin-bottom: 0px;
}

.catul {
    list-style: none;
    display: flex;
}

.catli {
    width: 300px;
}

.catfigure:hover .catfigcaption{
    display: block;
}

.catfigure {
    padding: 5px;
    position: relative;
    }

.catfigcaption {
    display: none;
    position: absolute;
    top: 5px;
    left: 5px;
    bottom: 7px;
    right: 5px;
    background: rgba(0,0, 0, .7);
    text-align: center;
    padding: 40px;
    font: 35px/45px cursive;
    color: white;
    border-radius: 60px;
}

/*boton deslizar arriba */

svg {
    width: 35px;
    height: 35px;
}

#scrollBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    border: none;
    outline: none;
    background-color: hsl(26, 85%, 55%);
    cursor: pointer;
    color: var(--white);
    padding: 15px;
    border-radius: 50%;
}

#scrollBtn:hover {
    background-color: #EF4B24;
}

/*diseño sucursales con mapa*/

.contenedor {
    display: flex;
    margin-top: 52px;
    justify-content: center;
    align-items: center;
}

.Sucursales {
    width: 400px;
    margin-right: 60px;
}


@media (min-width: 1412px)
{
    .nav
    {
        max-height: none;
        top: 0;
        position: relative;
        float: right;
        width: fit-content;
        background-color: transparent;
    }

    .menu li
    {
        float: left;
    }

    .menu a:hover
    {
        background-color: transparent;
        color: var(--black)
    }

    .hamb
    {
        display: none;
    }
    
   


    
}
/* Ajustes responsivos */
img {
    max-width: 100%;
    height: auto;
  }
  
  /* Categoría de sucursales */
  .categoria {
    width: 100%;
    padding: 10px;
    flex-wrap: wrap;
  }
  
  .catul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
  }
  
  .catli {
    width: 120px;
    margin: 10px;
    flex: 1 1 100px;
    text-align: center;
  }
  
  /* Contenedor sucursal + mapa */
/* Contenedor sucursal + mapa */
.contenedor {
    display: flex;
    flex-direction: column; /* móvil: apilado */
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
    padding: 20px;
    width: 100%;
}

.Sucursales {
    width: 100%;
    max-width: 700px; /* ya no fijo en 400px */
    margin: 0 auto;
}

/* Iframes responsivos */
iframe {
    width: 100% !important;
    max-width: 700px;
    height: 300px;
    border: none;
    border-radius: 8px;
}

/* En pantallas grandes → lado a lado */
@media (min-width: 992px) {
    .contenedor {
        flex-direction: row; /* texto + iframe */
        align-items: flex-start;
        text-align: left;
    }

    .Sucursales {
        flex: 1;
        max-width: 450px;
        margin: 0 30px 0 0;
    }

    iframe {
        flex: 1;
        height: 450px;
    }
}


  
  /* Tipografía adaptable */
  h1 {
    font-size: clamp(24px, 5vw, 40px);
  }
  
  p {
    font-size: clamp(14px, 2.5vw, 18px);
  }
  /* Fondo responsive */
/* Fondo responsive repetido */
.fondo {
    width: 100%;
    height: 200px; /* altura base en móvil */
    background: url("../Images/Sucursales/Fondo.png") repeat-x center top;
    background-size: auto 100%; /* que se adapte en alto */
}

/* Ajustes en pantallas medianas */
@media (min-width: 768px) {
    .fondo {
        height: 250px;
    }
}

/* Ajustes en pantallas grandes */
@media (min-width: 1200px) {
    .fondo {
        height: 300px;
    }
}

