:root {
    --primary-color: #7D2663;
    --secondary-color: #333C4D;
    --primary-light: #A13D8E;
    --bg-dark: #0a0a12;
    /* Deeper dark */
    --bg-card: #151525;
    /* Deeper card */
    --text-light: #f5f5f7;
    --text-muted: #a0a0b0;
    --gradient-main: linear-gradient(135deg, #7D2663 0%, #A13D8E 100%);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s ease;
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.bg-white{background-color: #fff;}

.text-justify{text-align: justify;}

.text-right{text-align: right;}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 15px rgba(125, 38, 99, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(125, 38, 99, 0.6);
}

.btn-outline {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: var(--bg-dark);
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-main);
    border-radius: 2px;
}

.text-center {
    text-align: center;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.bg-dark {
    background-color: #131320;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-light);
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-light);
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: var(--transition);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 100%;
}

.btn-contact {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px !important;
    border-radius: 20px;
}

.btn-contact:hover {
    background: var(--primary-color);
    color: white !important;
}

.btn-contact::before {
    display: none;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-light);
}

/* Hero */
.hero {
    height: 100vh;
    background: url('assets/hero_background.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 60px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 18, 0.8), var(--bg-dark));
    z-index: 1;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 10;
}

.hero-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 20;
}

.h-dot {
    width: 30px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition);
}

.h-dot.active {
    background: var(--primary-color);
    width: 50px;
}

/* Hero Nav Arrows */
.hero-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    z-index: 30;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.hero-prev {
    left: 30px;
}

.hero-next {
    right: 30px;
}

.hero-nav button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .hero-nav button {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .hero-prev { left: 10px; }
    .hero-next { right: 10px; }
}

.highlight {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* About */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--primary-light);
    font-weight: 700;
}

.stat-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.about-image {
    position: relative;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.glass-card i {
    font-size: 4rem;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.glass-card h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.mission-vision-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.mv-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mv-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-card);
}

.mv-card i {
    font-size: 2.5rem;
    color: var(--primary-light);
}

.mv-card h3 {
    font-size: 1.8rem;
    color: var(--text-light);
}

.mv-card p {
    color: var(--text-muted);
}

/* Services */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-light);
    border-left: 5px solid var(--primary-color);
    padding-left: 20px;
}

.category-title i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card);
    border-color: var(--primary-color);
}

.service-card.featured {
    background: linear-gradient(145deg, #1d1021, #151525);
    border: 1px solid rgba(125, 38, 99, 0.3);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(125, 38, 99, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.service-card h4 {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.service-card .subtitle {
    display: block;
    font-size: 0.8rem;
    color: var(--primary-light);
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.project-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-img .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 26, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-img .overlay {
    opacity: 1;
}

.btn-view {
    color: white;
    font-weight: 600;
    border: 2px solid white;
    padding: 10px 25px;
    border-radius: 30px;
    transition: var(--transition);
}

.btn-view:hover {
    background: white;
    color: var(--bg-dark);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tags span {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    color: var(--primary-light);
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 60px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-details i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: var(--font-main);
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(125, 38, 99, 0.1);
}

.btn-block {
    width: 100%;
    border: none;
    font-size: 1rem;
}

/* Hours Section */
.hours-section {
    position: relative;
    overflow: hidden;
}

.hours-wrapper {
    background: var(--bg-card);
    padding: 60px 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: var(--shadow-card);
}

.hours-header {
    margin-bottom: 40px;
}

.hours-header p {
    color: var(--text-muted);
}

.hours-header .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.hour-card {
    background: var(--bg-dark);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hour-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.hour-card i {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 15px;
}

.hour-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.hour-card p {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1rem;
}

.hour-card.closed {
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.02);
}

.hour-card.closed i {
    color: var(--text-muted);
}

.hour-card.closed p {
    color: var(--text-muted);
}

/* Testimonials Carousel */
.testimonial-carousel {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 0;
}

.testimonial-card {
    min-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.testimonial-content {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 30px;
    box-shadow: var(--shadow-card);
}

.testimonial-content::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 40px;
    border-width: 20px 20px 0 0;
    border-style: solid;
    border-color: var(--bg-card) transparent transparent transparent;
}

.stars {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.testimonial-content p {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-light);
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 20px;
}

.client-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

.client-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-info h4 {
    font-size: 1.1rem;
    color: var(--text-light);
}

.client-info span {
    font-size: 0.85rem;
    color: var(--primary-light);
    font-weight: 600;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a {
    margin-left: 20px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.btnWsp{
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 99;
    transition: all 0.5s;
}

.btnWsp:hover{
    transform: scale(1.1);
}


/* Dropdown */
    /* Estilos del Dropdown (Integrables en cualquier sitio) */
    .dropdown {
      position: relative;
      display: inline-block;
    }

    /* Botón disparador del menú desplegable */
    .dropdown-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 0;
      background-color: transparent;
      color: #f8fafc;
      font-size: 1rem;
      font-weight: 500;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      transition: background-color 0.2s ease, color 0.2s ease;
    }

    .dropdown-btn:hover,
    .dropdown.active .dropdown-btn {
        
      color: var(--primary-color);
    }

    /* Flecha indicadora */
    .dropdown-arrow {
      width: 0;
      height: 0;
      border-left: 5px solid transparent;
      border-right: 5px solid transparent;
      border-top: 5px solid currentColor;
      transition: transform 0.25s ease;
    }

    .dropdown a{
        padding: 0 !important;
    }

    .dropdown.active .dropdown-arrow {
      transform: rotate(180deg);
    }

    /* Menú desplegable con las opciones */
    .dropdown-menu {
      position: absolute;
      top: calc(100% + 6px);
      left: 0;
      min-width: 200px;
      margin: 0;
      padding: 6px 15px;
      list-style: none;
      background-color: #0f172a;
      border: 1px solid #1e293b;
      border-radius: 8px;
      box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
      
      /* Control de visibilidad con animaciones */
      opacity: 0;
      visibility: hidden;
      transform: translateY(-8px);
      transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
      z-index: 1000;
    }

    .dropdown-menu li{
        padding: 5px 0;
    }

    /* Estado activo para mostrar el menú */
    .dropdown.active .dropdown-menu {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    /* Enlaces dentro del dropdown */
    .dropdown-link {
      display: block;
      padding: 10px 16px;
      color: #f8fafc;
      text-decoration: none;
      font-size: 0.95rem;
      transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
    }

    .dropdown-link:hover {
      background-color: #334155;
      color: #38bdf8;
      padding-left: 20px; /* Leve animación al pasar el mouse */
    }




/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .stats {
        justify-content: center;
    }

    .glass-card {
        margin-top: 40px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        padding: 40px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav-links.nav-active {
        right: 0;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
    
    /* dropdown */

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background-color: rgba(15, 23, 42, 0.5);
    }
}

@media (max-width: 480px) {
    .hero-btns {
        flex-direction: column;
    }

    .hero-btns .btn {
        width: 100%;
        text-align: center;
    }
}