:root {
    --color-primary: #4e2897;
    --color-secondary: #4d1d7c;
    --color-tertiary: #8c65d6;
    --color-background: #f8f9fb;
    --color-background-secondary: #ffffff;
    --color-text-primary: #000;
    --color-text-secondary: #fff9f9;
    --color-text-tertiary: #333333;
    --color-accent: #4e2897;
}

/* Style General */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif, Arial;
}

body {
    background-color: var(--color-background);
    color: var(--color-text-primary);
    line-height: 1.6;
    position: relative;
    padding-top: 90px;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: Arial, sans-serif;
}

.section-title {
    color: var(--color-primary);
    margin-bottom: 10px;
}

.servicios,
.nosotros,
.testimonios,
.contacto {
    padding: 50px 0;
}

#servicios,
#nosotros,
#testimonios,
#contacto {
    scroll-margin-top: 60px;
}

.nosotros,
footer {
    background-color: var(--color-background-secondary);
}

.servicios,
.nosotros,
.testimonios,
.contacto h2 {
    text-align: center;
    margin-bottom: 25px;
}

/* Header */
.top-bar {
    background-color: var(--color-background);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    z-index: 1003;
    border-bottom: 2px solid var(--color-primary);
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease-in-out;
}

nav {
    background-color: var(--color-background);
    position: fixed;
    width: 100%;
    z-index: 1004;
    padding: 5px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    top: 40px;
    left: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, top 0.3s ease-in-out;
}

nav.nav-up {
    transform: translateY(-40px);
}

.top-bar.hide {
    transform: translateY(-40px);
}


.icon-info-box {
    display: flex;
    gap: 20px;
    color: var(--color-text-tertiary);
}

.top-bar a {
    font-weight: bold;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 18px;
}

.top-bar a:hover {
    color: var(--color-tertiary);
}

.logo img{
    width: 90px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 32px;
    font-size: 1.2rem;
}

.nav-links a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: bold;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-links a.active-link::after {
    left: 0;
    width: 100%;
}

.sub-title-h {
    font-weight: bold;
    font-size: 3.5rem;
}

.sub-title-h-text {
    font-size: 1.5rem;
}

.btn-agenda,
.btn-agenda-top {
    background-color: var(--color-primary);
    color: var(--color-text-secondary);
    padding: 12px 25px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

@media (min-width: 769px) {
    #agenda-link {
        display: none;
    }
}

/* Hero section */
.hero {
    padding: 120px 0;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-text {
    width: 50%;
    margin-right: 10px;
}

.hero-text h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.hero-text p {
    margin-bottom: 20px;
}

.hero-image {
    width: 60%;
}

.principal-img{
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
}

/* Services */

.servicios-intro {
    text-align: center;
    margin-bottom: 30px;
}

.ser-title-h {
    font-weight: bold;
    font-size: 1.5rem;
}

.ser-title-h-text {
    font-size: 1.2rem;
    color: var(--color-text-tertiary);
    font-weight: 400px;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(2, 450px);
    gap: 35px;
    margin-top: 30px;
    justify-content: center;
}

.servicio-card {
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(78, 40, 151, 0.4);
}

.servicio-card h3 {
    margin-top: 10px;
    margin-bottom: 10px;
}

.img-container {
    width: 100px;
    height: 80px;
    margin: 0 auto 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-gif {
    width: 5.5rem;
    height: 5.5rem;
}

/* Our */

.nosotros-card {
    background-color: #f9f9f9;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nosotros-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.nosotros-text {
    width: 60%;
}

.nosotros-image {
    width: 40%;
    align-self: center;
}

.nosotros-title {
    font-size: 26px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.nosotros-subtitle {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.nosotros-tabs {
    display: flex;
    margin: 30px 0 20px;
    border-bottom: 1px solid #e0e0e0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    margin-right: 10px;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    color: #666;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--color-primary);
}

.tab-btn.active {
    color: var(--color-primary);
    font-weight: bold;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 100%;
        opacity: 1;
    }
}

.tab-content {
    margin-top: 20px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-pane p {
    text-align: left;
    text-justify: inter-word;
    line-height: 1.5;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.valores-list {
    padding-left: 20px;
    text-align: left;
}

.valores-list li {
    margin-bottom: 10px;
}

/* WhyUs */

.section-title-porque {
    margin-top: 50px;
    text-align: left;
    color: var(--color-primary);
}

.por-que-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.por-que-text {
    margin-top: 20px;
    margin-bottom: 50px;
    width: 60%;
    font-size: 18px;
    text-align: left;
}

.placeholder-timetable {
    width: 400px;
    padding: 20px;
    background-color: #f8f9fb;
    display: flex;
    z-index: 1;
}

.por-que-timetable {
    width: 35%;
    border: 2px solid var(--color-primary);
    border-radius: 5px;
    padding: 20px;
    width: 400px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timetable-title {
    color: var(--color-primary);
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.day-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #cccccc;
}

.call-section {
    margin-top: 20px;
    display: flex;
    align-items: center;
}

.call-text-box {
    text-align: left;
}

.call-text {
    text-align: left;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--color-primary);
}

.call-phone {
    text-align: left;
    font-size: 1.2rem;
    color: var(--color-text-tertiary);
}

.call-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

.call-box li {
    list-style: none;
    padding: 0 15px;
}

.call-icons {
    transform: translate(-50%, -50%);
}

.call-list li a {
    width: 90px;
    height: 90px;
    background-color: #f5f5f5;
    text-align: center;
    line-height: 80px;
    font-size: 35px;
    margin: 0 10px;
    display: block;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 3px solid #dbdbdb;
    z-index: 1;
}

.call-list li a .icon {
    position: relative;
    color: #262626;
    transition: .5s;
    z-index: 3;
}

.call-list li a:hover .icon {
    color: #fff;
    transform: rotateY(360deg);
}

.call-list li a:before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f00;
    transition: .5s;
    z-index: 2;
}

.call-list ul li a:hover:before {
    top: 0;
}

.call-list li:nth-child(1) a:before {
    background: var(--color-secondary);
}

.por-que-list {
    list-style: none;
    margin-top: 20px;
}

.por-que-list li {
    margin-bottom: 10px;
    position: relative;
    text-align: left;
    font-weight: bolder;
}

.icon-list {
    color: var(--color-secondary);
}

.placeholder-nosotros {
    position: relative;
    width: 100%;
    height: 440px;
}

.nosotros-image{
    width: 65%;
    align-self: center;
}

.img-nosotros{
    width: 100%;
    height: 440px;
    max-width: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.img-nosotros.active {
    opacity: 1;
}


/* Contact */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    padding: 80px 0;
}

.social-list {
    display: flex;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.social-list li {
    list-style: none;
    padding: 0 15px;
}

.social-list li a {
    width: 90px;
    height: 90px;
    background-color: #f5f5f5;
    text-align: center;
    line-height: 80px;
    font-size: 35px;
    margin: 0 10px;
    display: block;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 3px solid #dbdbdb;
    z-index: 1;
}

.social-list li a .icon {
    position: relative;
    color: #262626;
    transition: .5s;
    z-index: 3;
}

.social-list li a:hover .icon {
    color: #fff;
    transform: rotateY(360deg);
}

.social-list li a:before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f00;
    transition: .5s;
    z-index: 2;
}

ul li a:hover:before {
    top: 0;
}

ul li:nth-child(1) a:before {
    background: #1877f2;
}

ul li:nth-child(2) a:before {
    background: #2dd46c;
}

ul li:nth-child(3) a:before {
    background: linear-gradient(to right, #833ab4, #fd1d1d, #fcb045);
}

ul li:nth-child(4) a:before {
    background: #EA4335;
}

/* Testimonial */

.testimonios-slider {
    position: relative;
    margin-top: 30px;
    overflow: hidden;
    padding-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.testimonio-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 30px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    transform: translateY(20px);
    display: none;
}

.testimonio-card.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    display: block;
}

.testimonio-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.testimonio-card p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.testimonio-card .stars {
    font-size: 1.8rem;
    margin-top: 15px;
    color: gold;
}

.slider-controls {
    position: absolute;
    top: 63%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 10;
}

.testimonios-slider:hover .slider-controls {
    opacity: 1;
}

.slider-arrow {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.4s ease;
    opacity: 0.8;
}

.slider-arrow:hover {
    background-color: var(--color-secondary);
    opacity: 1;
    transform: scale(1.1);
}

.slider-arrow.left {
    transform: translateX(-20px);
    transition: transform 0.5s ease, opacity 0.5s ease, background-color 0.3s ease;
}

.slider-arrow.right {
    transform: translateX(20px);
    transition: transform 0.5s ease, opacity 0.5s ease, background-color 0.3s ease;
}

.testimonios-slider:hover .slider-arrow.left {
    transform: translateX(0);
}

.testimonios-slider:hover .slider-arrow.right {
    transform: translateX(0);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 50px;
}

.footer-img {
    margin-top: 10px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.footer-img img {
    width: 20%;
}