/* ==========================================================================
   CSS Variables & Tokens
   ========================================================================== */
:root {
    /* Colors */
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --primary-light: #4da3ff;
    --whatsapp-color: #25d366;
    --whatsapp-dark: #128c7e;
    --text-color: #343a40;
    --text-light: #6c757d;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --bg-alt: whitesmoke;
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Shadows (Material Design inspired) */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 15px 30px rgba(0,123,255,0.15);
    
    /* Transitions */
    --transition: all 0.3s ease;
    
    /* Layout */
    --container-padding: 1.5rem;
    --border-radius: 12px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

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

.text-white {
    color: #ffffff;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--text-color);
    color: #ffffff;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-whatsapp-large {
    background-color: var(--whatsapp-color);
    color: white;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
}

.btn-whatsapp-large:hover {
    background-color: var(--whatsapp-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 130px;
    width: auto;
    border-radius: 50%;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.logo img {
    height: 65px;
    width: 65px;
    margin: -12px 0;
    border-radius: 50%;
    object-fit: cover;
}

.main-nav {
    display: none; /* Mobile first, hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: var(--shadow-md);
}

.main-nav.active {
    display: block;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

.nav-link {
    display: block;
    padding: 1rem var(--container-padding);
    color: var(--text-color);
    font-weight: 600;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: var(--bg-light);
}

.btn-primary-nav {
    color: var(--primary-color);
    font-weight: 700;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--text-color);
    border-radius: 2px;
}

.mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding-top: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 600px;
    margin: 0;
}

.hero-subtitle {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--primary-color);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ==========================================================================
   About Me Section
   ========================================================================== */
.about-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-video-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.about-name {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.section-header {
    margin-bottom: 3rem;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-img-wrapper {
    height: 200px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.services-list-container {
    background-color: #ffffff;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    max-width: 900px;
    margin: 3rem auto 0 auto;
    border: 1px solid rgba(0,0,0,0.05);
}

.custom-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0;
}

.custom-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1.05rem;
    color: var(--text-color);
}

.custom-list i {
    color: var(--primary-color);
    font-style: normal;
    font-weight: bold;
    margin-top: 2px;
}

@media (min-width: 768px) {
    .custom-list {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================================================
   Carousel Section
   ========================================================================== */
.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.carousel-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    object-fit: contain;
    max-height: 650px;
    background-color: #f8f9fa;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--text-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: var(--shadow-md);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* ==========================================================================
   Videos Section
   ========================================================================== */
.videos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    background-color: #000;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Ubicaciones Section
   ========================================================================== */
.ubicaciones {
    background-color: var(--primary-color);
    color: #ffffff;
}

.ubicaciones .section-title {
    color: #ffffff;
}

.locations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.location-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.location-logo {
    max-height: 80px;
    margin: 0 auto 1.5rem auto;
    object-fit: contain;
}

.location-details, .location-phones {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.font-weight-bold {
    font-weight: 700;
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

.map-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-top: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.hours-info {
    max-width: 600px;
    margin: 3rem auto 0 auto;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.hours-title {
    color: #ffffff;
    margin-bottom: 1rem;
}

.highlight-text {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-card {
    background-color: var(--primary-dark);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 1.1rem;
    color: #fff;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-item i {
    font-style: normal;
    font-size: 1.25rem;
    background-color: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* ==========================================================================
   Floating Buttons (WhatsApp & Share)
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: var(--whatsapp-dark);
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
}

.share-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition);
}

.share-float:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--text-color);
    color: #ffffff;
    padding: 3rem 0 2rem 0;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #adb5bd;
}

/* ==========================================================================
   Media Queries (Desktop / Tablet)
   ========================================================================== */
@media (min-width: 768px) {
    /* Header & Nav */
    .mobile-menu-btn {
        display: none;
    }
    
    .main-nav {
        display: block;
        position: static;
        width: auto;
        background: none;
        box-shadow: none;
    }
    
    .nav-list {
        flex-direction: row;
        padding: 0;
        gap: 1.5rem;
        align-items: center;
    }
    
    .nav-link {
        padding: 0.5rem 0;
    }
    
    .nav-link:hover {
        background-color: transparent;
    }
    
    .btn-primary-nav {
        background-color: var(--primary-color);
        color: #ffffff !important;
        padding: 0.5rem 1.5rem;
        border-radius: 50px;
    }
    
    .btn-primary-nav:hover {
        background-color: var(--primary-dark);
        color: #ffffff !important;
    }

    /* Hero */
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-buttons {
        flex-direction: row;
    }
    
    /* About */
    .about-container {
        flex-direction: row;
        align-items: center;
    }
    
    .about-video-container {
        flex: 1;
    }
    
    .about-text {
        flex: 1;
        padding-left: 2rem;
    }

    /* Services, Videos & Locations */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Contact */
    .contact-details {
        flex-direction: row;
        justify-content: center;
        gap: 3rem;
    }
}
