@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --blue: #375786;
    --black: #333;
    --white: #fff;
    --light-color: #666;
    --light-bg: #eee;
    --gray-color: #3b3b3b;
    --border: 0.2rem solid rgba(0, 0, 0, 0.1);
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none !important;
    text-transform: none;
}

*::-webkit-scrollbar-track {
    background-color: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: var(--blue);
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 6.5rem;
}

section{
    padding: 7rem 2rem;
}

.heading{
    text-align: center;
    font-size: 4rem;
    color: var(--black);
    margin-bottom: 3rem;
}

.link-btn {
    display: inline-block;
    padding: 1rem 3rem;
    border-radius: 0.5rem;
    background-color: var(--blue);
    cursor: pointer;
    font-size: 1.7rem;
    color: var(--white);
}

.link-btn:hover {
    background-color: var(--black);
    color: var(--white);
}

/* *Header */

.header {
    padding: 2rem;
    border-bottom: var(--border);
    background-color: rgba(255, 255, 255, 0.8);
}

.header.active{
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    border: 0;
}

.header .logo {
    font-size: 2.3rem;
    color: var(--black);
}

.header .logo span {
    color: var(--blue);
}

.header .nav a {
    margin: 0 1rem;
    font-size: 1.7rem;
    color: var(--black);
}

.header .nav a:hover {
    color: var(--blue);
}

#menu-btn {
    font-size: 2.5rem;
    color: var(--black);
    cursor: pointer;
    display: none;
}

section{
    padding: 7rem 2rem;
}


/* *Services */


.services{
    background-color: var(--light-bg);
}

.services .box-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* máximo 3 columnas */
    gap: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services .box-container .box:hover {
    transform: translateY(-7px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}

.services .box-container .box{
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    border-radius: 0.5rem;
}

.services .box-container .box img{
    margin: 1rem 0;
    height: 5rem;
}

.services .box-container .box h3{
    font-size: 2.2rem;
    padding: 1rem 0;
    color: var(--black);
}

.services .box-container .box p{
    font-size: 1.7rem;
    color: var(--gray-color);
    line-height: 2;
}

@media (max-width: 991px) {
    .services .box-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services .box-container {
        grid-template-columns: 1fr;
    }
}


.reviews{
    background-color: var(--light-bg);
    padding: 15rem 15rem;
}

.reviews .box-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 2rem;
}

.reviews .box-container .box{
    background-color: var(--white);
    text-align: center;
    border-radius: 0.5rem;
    box-shadow: var(--box-shadow);
    padding: 2rem;
}

.reviews .box-container .box img{
    height: 10rem;
    width: 10rem;
    border-radius: 100%;
}

.reviews .box-container .box p{
    padding: 2rem;
    line-height: 2;
    font-size: 1.5rem;
    color: var(--light-color);
    margin-bottom: 0;
}

.reviews .box-container .box .stars{
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    background-color: var(--light-bg);
    margin-bottom: 2rem;
    display: inline-block;
}

.reviews .box-container .box .stars i{
    font-size: 1.5rem;
    color: var(--blue);
}

.reviews .box-container .box h3{
    font-size: 2rem;
    color: var(--black);
}

.reviews .box-container .box span{
    font-size: 1.3rem;
    color: var(--light-color);
}

/* *Home */

.home{
    background:url(../img/law4.png) no-repeat;
    background-size: cover;
}

.home .content{
    width: 66rem;
    padding: 1.25rem;
    min-height: 67vh;
}

.home .content h3{
    font-size: 4.5rem;
    color: var(--black);
}

.home .content p{
    line-height: 2;
    font-size: 1.46rem;
    color: var(--light-color);
    padding: 0.5rem 0;
    padding-right: 1.9rem;
}

.about .row{
    min-height: 60vh;
}

.about img{
    border-radius: 1.5%;
}

.about .content span{
    font-size: 2rem;
    color: var(--blue);
}

.about .content h3{
    font-size: 2.5rem;
    color: var(--black);
    margin-top: 2rem;
}

.about .content p{
    padding: 2rem 0;
    font-size: 1.7rem;
    color: var(--gray-color);
    line-height: 2;
}


/** History */

.history {
    background-color: var(--light-bg);
}

.history .row {
    min-height: 60vh;
}

.history img {
    border-radius: 1.5%;
}

.history .content span {
    font-size: 2rem;
    color: var(--blue);
}

.history .content h3 {
    font-size: 2.5rem;
    color: var(--black);
    margin-top: 2rem;
}

.history .content p {
    padding: 2rem 0;
    font-size: 1.5rem;
    color: var(--gray-color);
    line-height: 2;
}

.history .content p,
#moreHistoryText {
    padding: 2rem 0;
    font-size: 1.5rem;
    color: var(--gray-color);
    line-height: 2;
}

#historyToggleText {
    font-size: 1.5rem;
    font-weight: 500;
}

.history .heading span {
    color: var(--blue);
}

/** Carrusel */

.image-carousel {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4rem 0;
    gap: 20px;
}

.image-carousel::-webkit-scrollbar {
    display: none;
}

.image-carousel {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.image-box {
    flex: 0 0 auto;
    width: 35rem;
    border: 1px solid #ccc;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
    background: #f9f9f9;
    border-radius: 2%;
}

.image-box img {
    max-width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
}

.carousel-container {
    position: relative;
    padding: 0 10px;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    user-select: none;
    border-radius: 50%;
    transition: background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: -1.5rem;
}

.next-btn {
    right: -1.5rem;
}

.aspect-ratio-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.aspect-ratio-container::before {
    content: "";
    display: block;
    padding-bottom: calc(3 / 4 * 100%);
}

.aspect-ratio-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/** Contact Bottom */

.contact-bottom {
    background-color: var(--blue);
    color: #fff;
    padding: 1rem 2rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(2px);
    margin: 2rem auto;
}

.contact-bottom-wrapper {
    display: flex;
    justify-content: center;
}

/* *About 2 */

.geology {
    background-color: var(--light-bg);
}

.geology .row {
    min-height: 60vh;
}

.geology img {
    border-radius: 1.5%;
}

.geology .content span {
    font-size: 2rem;
    color: var(--blue);
}

.geology .content h3 {
    font-size: 2.5rem;
    color: var(--black);
    margin-top: 2rem;
}

.geology .content p {
    padding: 2rem 0;
    font-size: 1.7rem;
    color: var(--gray-color);
    line-height: 2;
}


/* *Textos bajo el home */

.contact-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    color: #fff;
    font-size: 1.7rem;
}

.contact-item {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 1.7rem;
}

.contact-item i {
    margin-right: 0.8rem;
    color: #fff;
}

@media (max-width: 768px) {
    .contact-bottom {
        font-size: 1.2rem;
    }
}

@media (max-width: 454px) {
    .contact-bottom {
        font-size: 0.8rem;
        gap: 1rem;
    }
}

/* *Partners */

.partners-section {
    padding: 15rem 2rem;
}

.partners-section .heading {
    text-align: center;
    font-size: 4rem;
    color: var(--black);
    margin-bottom: 10rem;
}

.partners-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    justify-items: center;
}

.partner-logo-box {
    width: 100%;
    max-width: 50rem;
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-logo-box img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner-logo-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.partner-logo-box:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 991px) {
    .partners-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .partners-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 450px) {
    .partners-container {
        grid-template-columns: 1fr;
    }
    .partner-logo-box {
        max-width: 200px;
    }
}


/* *Footer */

.footer{
    background-color: var(--light-bg);
}

.footer .box-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 3rem;
}

.footer .box-container .box{
    text-align: center;
}

.footer .box-container .box i{
    height: 5rem;
    width: 5rem;
    border-radius: 50%;
    line-height: 5rem;
    font-size: 2rem;
    background-color: var(--blue);
    color: var(--white);
    margin-bottom: 1rem;
}

.footer .box-container .box h3{
    font-size: 2rem;
    margin: 1rem 0;
    color: var(--black);
}

.footer .box-container .box p{
    font-size: 1.5rem;
    color: var(--light-color);
    text-transform: none;
    line-height: 2;
}

.footer .credit{
    text-align: center;
    border-top: var(--border);
    padding-top: 2rem;
    margin-top: 2rem;
    font-size: 1.7rem;
    color: var(--light-color);
    padding-bottom: 2rem;
}

.footer .credit span{
    color: var(--blue);
}

/* *Map */

.map-container {
    width: 80%;
    height: 450px;
    margin: 10px auto;
    display: block;
    padding-top: 0.5rem;
    padding-bottom: 6rem;
  
    iframe {
        width: 100%;
        height: 100%;
        border: 0;
    }

    p{
        font-size: 1.7rem;
        color: var(--light-color);
        line-height: 2;
    }
}


/* *media queries */

@media (max-width: 991px) {
    html{
        font-size: 55%;
    }

    .header .link-btn {
        display: none;
    }

    section{
        padding: 5rem 2rem;
    }
}

@media (max-width: 768px) {

    section{
        padding: 3rem 1rem;
    }

    #menu-btn {
        display: inline-block;
        transition: transform 0.2s linear;
    }
    
    #menu-btn.fa-times {
        transform: rotate(180deg);
    }

    .header .nav {
        position: absolute;
        top: 99%;
        left: 0;
        right: 0;
        background-color: var(--white);
        border-top: var(--border);
        border-bottom: var(--border);
        padding: 1rem 0;
        text-align: center;
        flex-flow: column;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.2s linear;
    }

    .header .nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .header .nav a {
        margin: 1rem 0;
        font-size: 2rem;
    }

    .home{
        background-position: left;
    }

    .home .content{
        width: auto;
    }

    .home .content h3{
        font-size: 3rem;
    }
}

.contact-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.contact-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 25px;
    opacity: 0.8;
}

.contact-items {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


@media (max-width: 450px) {
    html{
        font-size: 50%;
    }

    .home .content h3{
        font-size: 3rem;
    }
    
    .heading{
        font-size: 3rem;
    }

    .header .link-btn {
        display: none;
    }
}

.whatsapp-btn {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 1000 !important;
}

.whatsapp-btn img {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    transition: transform 0.3s ease !important;
}

.whatsapp-btn:hover img {
    transform: scale(1.3) !important;
}

/* *HOME */

.boxes-home {
    position: relative;
    overflow: hidden;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: -1;
}

.boxes-home .content {
    width: 66rem;
    padding: 1.25rem;
    min-height: 67vh;
}

.boxes-home .content h3 {
    font-size: 4.5rem;
    color: var(--white);
    text-shadow: 2px 2px 0px black;
}

.boxes-home .content p {
    line-height: 2;
    font-size: 1.46rem;
    color: var(--black);
    padding: 0.5rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
}


table {
    font-size: 1.6rem;
}

table th, table td {
    font-size: 1.6rem;
    padding: 1rem;
}


.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  color: #111;
  text-align: center;
  font-family: sans-serif;
  border-radius: 1px;
  overflow: hidden;
  max-width: 95%;
  margin: 0 auto;
  padding: 10rem 15rem !important;
}

.stat-box {
  padding: 20px 15px;
  border-right: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-box:last-child {
  border-right: none;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: #222;
  line-height: 1;
  font-family: 'Montserrat', sans-serif !important;
}

.stat-percent,
.stat-plus {
  font-size: 28px;
  vertical-align: super;
  color: #444;
  margin-left: 2px;
}

.stat-title {
  margin-top: 12px;
  font-size: 2rem;
  font-weight: 400;
  color: #555;
  line-height: 1.4;
  min-height: 75px;
}

.stat-subtitle {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  letter-spacing: 1px;
}

.stats-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1rem;
}

.stat-box {
  flex: 1 1 260px;
  max-width: 320px;
  padding: 1.5rem;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  background: transparent;
}

.stat-number {
  font-size: 6rem;
  font-weight: bold;
  color: #222;
}

.stat-percent,
.stat-plus {
  font-size: 2.3rem;
  color: #666;
}

.stat-title {
  margin-top: 1rem;
  font-size: 1.55rem;
  color: #292929;
}

.stat-subtitle {
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  font-size: 1.7rem;
}

/* *Recommendations */

.boxes-section {
    padding: 50px 0;
}

.boxes-section .heading {
    padding: 4rem;
}


.new-boxes-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
}

.new-box {
    width: 48%;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    text-align: center;
}

.new-box:nth-of-type(odd) {
    margin-top: 50px;
}

.new-box .box-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    border: 3px solid var(--blue);
}

.new-box p {
    font-size: 1.6rem;
    color: #555;
    margin: 0 0 10px 0;
    flex-grow: 1;
}

.new-box span {
    font-size: 1.9rem;
    color: #555;
    margin: 0 0 10px 0;
    flex-grow: 1;
    font-weight: bold;
    font-family: Tahoma, Geneva, Verdana, sans-serif;
}

.new-box .subtitle {
    font-size: 1.4rem;
    color: #777;
    margin-top: auto;
}

@media (max-width: 768px) {
    .new-box {
        width: 100%;
        margin-top: 0 !important;
    }
    .new-box .box-image {
        width: 120px;
        height: 120px;
    }
}