﻿/*  AGENCIAS */
.agencias{
    width:100%;
    padding:160px 60px 100px;
    background:#f5f7fa;
}
/*  TITULO  */
.titulo{
    text-align:center;
    margin-bottom:70px;
}
.titulo h2{
    font-size:60px;
    font-weight:800;
    color:#005ca8;
    margin-bottom:18px;
    position:relative;
    display:inline-block;
}
.titulo h2::after{
    content:"";
    width:110px;
    height:5px;
    background:#005ca8;
    display:block;
    margin:18px auto 0;
    border-radius:10px;
}
.titulo p{
    font-size:22px;
    color:#555;
    max-width:700px;
    margin:auto;
    line-height:1.8;
}
/*  CONTENEDOR AGENCIAS */
.contenedor-agencias{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:35px;
    margin-top:70px;
    align-items:stretch;
}
/* TARJETAS */
.agencia-card{
    background:white;
    border-radius:35px;
    overflow:hidden;
    box-shadow:0 15px 35px rgba(0,0,0,0.10);
    transition:.4s;
    border:3px solid transparent;
    display:flex;
    flex-direction:column;
    position:relative;
}
.agencia-card:hover{
    transform:translateY(-12px);
    box-shadow:0 25px 45px rgba(0,0,0,0.18);
    border-color:#005ca8;
}
/* IMAGEN */
.agencia-card img{
    width:100%;
    height:260px;
    object-fit:cover;
    display:block;
    transition:.4s;
}
.agencia-card:hover img{
    transform:scale(1.05);
}
/* INFO */
.agencia-info{
    background:white;
    padding:30px 25px;
    text-align:center;
    flex:1;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}
.agencia-info h3{
    color:#005ca8;
    font-size:30px;
    margin-bottom:18px;
    font-weight:700;
}
.agencia-info p{
    color:#555;
    font-size:18px;
    line-height:1.8;
    margin-bottom:25px;
    background:#f9fafb;
    padding:20px;
    border-radius:20px;
}
/* BOTON MAPA */
/* BOTON MAPS */
.agencia-botones{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:15px;
}
.map-btn{
    display:flex;
    justify-content:center;
    align-items:center;
    width:65px;
    height:65px;
    border-radius:18px;
    text-decoration:none;
    background:white;
    border:3px solid #005ca8;
    transition:.35s;
    box-shadow:
    0 8px 20px rgba(0,0,0,0.12);
}
.map-btn:hover{
    transform:translateY(-5px) scale(1.05);
    background:linear-gradient(
        to right,
        #005ca8,
        #176c22
    );
    border-color:white;
    box-shadow:
    0 12px 25px rgba(0,92,168,0.35);
}
.map-btn img{
    width:36px;
    height:36px;
    object-fit:contain;
    transition:.35s;
}
.map-btn.whatsapp-btn i{
    font-size:32px;
    color:#25D366;
    transition:.35s;
}
.map-btn.whatsapp-btn:hover i{
    color:white;
    transform:scale(1.12);
}
.map-btn:hover img{
    transform:scale(1.12);
}
.horarios{
    width:100%;
    padding:100px 60px;
    background:#f5f7fa;
}
.horarios .titulo{
    text-align:center;
    margin-bottom:60px;
}
.horarios .titulo h2{
    font-size:55px;
    font-weight:800;
    color:#005ca8;
    margin-bottom:20px;
    position:relative;
}
.horarios .titulo h2::after{
    content:"";
    width:120px;
    height:5px;
    background:#005ca8;
    display:block;
    margin:18px auto 0;
    border-radius:10px;
}
.horarios .titulo p{
    font-size:22px;
    color:#555;
    max-width:750px;
    margin:auto;
    line-height:1.7;
}
/* TABLA */
.tabla-horarios{
    width:100%;
    overflow-x:auto;
    margin-top:50px;
}
table{
    width:100%;
    border-collapse:collapse;
    background:white;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
}
thead{
    background:#005ca8;
    color:white;
}
th,
td{
    padding:22px;
    text-align:center;
    font-size:18px;
}
tbody tr{
    border-bottom:1px solid #e5e7eb;
    transition:.3s;
}
tbody tr:hover{
    background:#f9fafb;
}
th{
    font-size:20px;
}
/* MOBILE */
@media(max-width:900px){
    .agencias{
        padding:140px 20px 80px;
    }
    .contenedor-agencias{
        grid-template-columns:1fr;
    }
    .horarios{
        padding:80px 20px;
    }
    .titulo h2{
        font-size:42px;
    }
    .titulo p{
        font-size:18px;
    }
    .agencia-info h3{
        font-size:25px;
    }
    .agencia-info p{
        font-size:16px;
    }
    th,
    td{
        padding:16px;
        font-size:15px;
    }
}