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

:root {
    --primary-color: #00aae0;
    --secondary-color: #66ce00;
    --text-color: #333;
    --background-color: #f4f4f4;
    --header-bg: transparent;
    --header-text-color: var(--text-color);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);
    --glass-shine-color: rgba(0, 170, 224, 0.3);
    --shadow: 
        0 8px 32px 0 rgba(0, 170, 224, 0.1),
        inset 0 2px 2px rgba(255, 255, 255, 0.6),
        inset 0 -2px 2px rgba(0, 170, 224, 0.2);
}

[data-theme="dark"] {
    --primary-color: #00aae0;
    --secondary-color: #66ce00;
    --text-color: #fff;
    --background-color: #1a1a1a;
    --header-bg: transparent;
    --header-text-color: #fff;
    --glass-bg: rgba(0, 0, 0, 0.15);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shine-color: rgba(255, 255, 255, 0.2);
    --shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        inset 0 -1px 1px rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

header {
    position: fixed;
    top: 20px;
    left: 5%;
    width: 90%;
    z-index: 100;
    padding: 10px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo-container, .nav-links, .nav-icons-container {
    background: transparent;
    backdrop-filter: blur(0px);
    border-radius: 50px;
    padding: 10px 20px;
    box-shadow: none;
    border: 1px solid transparent;
    transition: background 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

.header-scrolled .logo-container,
.header-scrolled .nav-links,
.header-scrolled .nav-icons-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    border: var(--glass-border);
}

.logo img {
    height: 40px;
    transition: filter 0.3s ease;
}

[data-theme="dark"] .logo img {
    filter: invert(1) brightness(1.5);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin: 0;
}

.nav-links a, .nav-links .user-menu-button, .nav-links .language-selector-button {
    color: var(--header-text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    display: flex;
    align-items: center;
}

.nav-links a.active {
    color: #333333;
    text-shadow: 0 0 10px var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60%;
    height: 8px;
    background: radial-gradient(ellipse at center, var(--primary-color) 0%, rgba(0, 170, 224, 0) 70%);
    filter: blur(10px);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.nav-links a:not(.active)::after {
    opacity: 0;
}

[data-theme="dark"] .nav-links a.active {
    color: #fff;
    text-shadow: 0 0 10px #fff;
}

[data-theme="dark"] .nav-links a.active::after {
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(8px);
}

.nav-icons {
    display: flex;
    align-items: center;
}

.nav-icons > div {
    margin: 0 8px;
}

#theme-switcher-container-desktop {
    margin-right: 15px;
}

.theme-switcher-label {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.theme-switcher-label input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider i {
    color: var(--header-text-color);
    transition: color 0.4s;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--header-text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

.user-menu-item, .language-selector-item, .theme-switcher-item {
    display: none;
}

main {
    padding-top: 0;
    overflow-x: hidden;
}

section {
    padding: 8rem 5%;
    margin: 0 auto;
    max-width: 1200px;
    text-align: center;
    position: relative;
}

.hero {
    color: #fff;
    height: 100vh;
    width: 100%;
    max-width: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.locations {
    color: #fff;
    max-width: none;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 8rem;
    padding-bottom: 8rem;
    position: relative;
    overflow: hidden;
}

#locations-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.locations-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    width: 100%;
    padding: 0 5%;
}

@media (min-width: 992px) {
    .hero-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-left {
        justify-content: flex-start;
    }

    .hero-content {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .hero-content {
      padding: 2rem;
      text-align: center;
      margin: 0 auto;
    }
  
    .hero-container {
      padding: 0 1rem;
    }
}

.hero-left {
    display: flex;
    justify-content: center;
    z-index: 1;
}

.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    border: var(--glass-border);
    position: relative;
    overflow: hidden;
}

.hero-content {
    border-radius: 20px;
    padding: 3rem;
    max-width: 550px;
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.cta-button {
    background: var(--primary-color);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.service-cards, .location-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
}

.card {
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

#about-us-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: center;
    border: 2px solid red; /* Borde rojo para verificar */
}

@media (min-width: 992px) {
    #about-us-section {
        grid-template-columns: repeat(2, 1fr);
    }

    #about-us-section .about-content {
        border-radius: 20px 0 0 20px;
    }

    #about-us-section .swiper-container {
        border-radius: 0 20px 20px 0;
    }
}

@media (max-width: 991px) {
    #about-us-section .about-content {
        border-radius: 20px 20px 0 0;
    }

    #about-us-section .swiper-container {
        border-radius: 0 0 20px 20px;
    }
}

.about-content {
    border-radius: 20px;
    padding: 3rem;
}

.swiper-container {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    object-fit: cover;
}

.swiper-button-next, .swiper-button-prev {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: var(--primary-color);
}

.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 24px;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

.contact {
    border-radius: 20px;
    padding: 3rem;
    margin-top: 2rem;
}

.contact-form, .login-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.contact-form input, .contact-form textarea, .login-form input {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid var(--text-color);
    border-radius: 10px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
}

.contact-form input:focus, .contact-form textarea:focus, .login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form label, .login-form label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-color);
    pointer-events: none;
    transition: top 0.3s, font-size 0.3s, color 0.3s;
}

.contact-form input:focus + label, .contact-form textarea:focus + label, .contact-form input:not(:placeholder-shown) + label, .contact-form textarea:not(:placeholder-shown) + label, .login-form input:focus + label, .login-form input:not(:placeholder-shown) + label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.8rem;
    color: var(--primary-color);
    background: var(--glass-bg);
    padding: 0 0.25rem;
}

#form-status {
    margin-top: 1rem;
}

.language-selector, .user-menu {
    position: relative;
}

.language-selector-button, .user-menu-button {
    background: transparent;
    border: none;
    color: var(--header-text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
}

.language-dropdown, .user-dropdown {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 85%;
    right: 0;
    border-radius: 10px;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    -webkit-mask-image: linear-gradient(to bottom, transparent 20%, black 50%);
    mask-image: linear-gradient(to bottom, transparent 20%, black 50%);
}

.language-dropdown {
    width: max-content;
    padding: 25px 10px 10px;
}

.user-dropdown {
    width: 300px;
    padding: 40px 20px 20px;
}

.language-dropdown a {
    display: block;
    color: var(--header-text-color);
    text-decoration: none;
    padding: 5px 10px;
    margin: 5px 0;
    transition: background 0.2s, color 0.2s;
}

.language-dropdown a:hover {
    background: var(--primary-color);
    border-radius: 5px;
    color: #fff;
}

#language-selector-desktop:hover .language-dropdown, .user-menu:hover .user-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-color);
    opacity: 0.7;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--text-color);
}

.divider:not(:empty)::before {
    margin-right: .5em;
}

.divider:not(:empty)::after {
    margin-left: .5em;
}

.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    color: #444;
    border: 1px solid #ccc;
    padding: 0.6rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
    width: 100%;
}

.google-login-btn:hover {
    background: #f2f2f2;
    border-color: #aaa;
}

.google-login-btn i {
    font-size: 1.2rem;
    color: #DB4437;
}

footer {
    padding: 4rem 5% 2rem;
    margin-top: 2rem;
    border-radius: 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 30px;
    margin-bottom: 1rem;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li a {
    color: var(--header-text-color);
    text-decoration: none;
}

.social-icons a {
    color: var(--header-text-color);
    font-size: 1.5rem;
    margin-right: 1rem;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        justify-content: space-between;
    }
}

.developer-signature {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.developer-signature a {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
}

.developer-signature img {
    height: 24px;
}

.word-rotator {
    display: inline-block;
    transition: opacity 0.5s ease-in-out;
}

@media screen and (max-width: 992px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.5s ease-in-out;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        box-shadow: var(--shadow);
        border: var(--glass-border);
    }

    .nav-links.nav-active {
        right: 0;
    }

    .hamburger {
        display: block;
        z-index: 101;
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .user-menu-item, .language-selector-item, .theme-switcher-item {
        display: list-item;
    }

    #user-menu-desktop, #language-selector-desktop, #theme-switcher-container-desktop {
        display: none;
    }

    .language-selector-item .language-selector-button i {
        display: none;
    }

    .language-selector-item .language-selector-button span {
        display: inline;
    }
}

@media screen and (min-width: 993px) {
    .language-selector-item, .theme-switcher-item {
        display: none;
    }

    .language-selector-item .language-selector-button span {
        display: none;
    }

    .language-selector-item .language-selector-button i {
        display: inline-block;
    }
}
