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

:root {
    --primary: #7b2cbf;
    --primary-light: #f3e5f5;
    --accent: #9d4edd;
    --text-dark: #240046;
    --text-muted: #5a189a;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);
    --shadow: 0 10px 30px rgba(123, 44, 191, 0.15);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
}

h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(123, 44, 191, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(123, 44, 191, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    background: var(--glass);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

header.scrolled {
    padding: 0.8rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    display: block;
}

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

.nav-cta {
    display: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
}

.nav-toggle span {
    width: 30px;
    height: 2px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* Mobile Toggle Color */
.nav-toggle span {
    background-color: var(--text-dark);
}

/* Mobile Overlay Backdrop */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(36, 0, 70, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsiveness for Navigation */
@media (max-width: 992px) {
    .nav-toggle {
        display: flex;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1000;
        padding-top: 40px;
    }

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

    .nav-cta {
        display: block;
        margin-top: 1rem;
    }

    .nav-cta a {
        padding: 0.8rem 2rem !important;
        font-size: 1rem !important;
    }

    .nav-cta a::after {
        display: none;
    }

    /* Force visibility and color on mobile background */
    .nav-links a {
        color: var(--text-dark) !important;
        font-size: 1.2rem;
    }

    .nav-links a::after {
        background-color: var(--primary) !important;
    }

    header:not(.scrolled) .nav-links a {
        color: var(--text-dark) !important;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/logo2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--white);
    text-align: left;
}

.hero-content {
    max-width: 700px;
    animation: fadeIn 1s ease-out;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* About Us */
.about {
    background-color: var(--primary-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    text-align: left;
}

.about-content h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    text-align: center;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-light) 100%);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

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

/* Why Choose Us */
.why-choose {
    background: linear-gradient(135deg, var(--primary) 0%, var(--text-dark) 100%);
    color: var(--white);
}

.why-choose h2 {
    background: none;
    -webkit-text-fill-color: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.why-item {
    text-align: center;
}

.why-item i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

/* Team Section */
.team {
    background-color: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.team-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.team-intro h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.team-intro .subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 2rem;
}

.team-member {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(123, 44, 191, 0.2);
}

.member-img-container {
    height: 350px;
    overflow: hidden;
}

.member-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-member:hover .member-img-container img {
    transform: scale(1.05);
}

.member-info {
    padding: 2rem;
}

.member-info h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.member-role {
    color: var(--primary);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Gallery - Adjusted for new items */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    height: 300px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 119, 182, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Reviews */
.reviews {
    background-color: var(--primary-light);
    overflow: hidden;
}

.reviews-carousel {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    padding: 2rem 0;
}

.review-card {
    min-width: 400px;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.review-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.stars {
    color: #ffb703;
    margin-bottom: 1rem;
}

.reviewer-name {
    font-weight: 700;
    color: var(--primary);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 119, 182, 0.1);
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary);
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.map-container {
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 2rem;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links h4,
.footer-social h4,
.footer-hours h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 992px) {

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    nav .btn-primary {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .review-card {
        min-width: 300px;
    }
}

/* Cookie System Styles */
.cookie-banner {
    position: fixed;
    bottom: -150px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.active {
    bottom: 0;
}

.cookie-banner-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text p {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.cookie-btns {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    transition: 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-card {
    background: var(--white);
    width: 90%;
    max-width: 500px;
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    box-shadow: var(--shadow);
    transform: scale(0.9);
    transition: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
}

.modal-body hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 1.5rem 0;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.option-info h4 {
    margin-bottom: 0.2rem;
    color: var(--text-dark);
}

.option-info p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* Toggle Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ddd;
    transition: .4s;
    border-radius: 34px;
}

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

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

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

@media (max-width: 768px) {
    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
        gap: 1.2rem;
    }
    
    .cookie-btns {
        width: 100%;
        gap: 0.8rem;
    }

    .cookie-btns .btn {
        flex: 1;
    }
    
    .modal-card {
        padding: 2rem 1.5rem;
    }

    .hero {
        background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/cristina_garcia.jpg');
        background-attachment: scroll;
        text-align: center;
        justify-content: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero h1 {
        font-size: 3rem;
    }
}