/* 
 * Melo Smart Service - Dark & Gold Premium Theme
 * Inspired by "Travice" Design
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@600;700;800;900&display=swap');

:root {
    /* Paleta Premium con Gradientes - VERSION MÁS CLARA */
    --primary: #1e293b;
    /* Slate 800 - Más claro que antes */
    --accent: #3B82F6;
    /* Azul vibrante */
    --accent-hover: #2563EB;
    /* Azul hover más oscuro */
    --secondary: #64748b;
    /* Slate 500 */
    --bg-white: #ffffff;

    /* Theme Tokens */
    --bg-dark: #1e293b;
    /* Main background - Slate 800 (más claro) */
    --bg-card: #334155;
    /* Card background - Slate 700 (más claro) */
    --bg-darker: #0f172a;
    /* Deepest background - Slate 900 (más claro que antes) */
    --bg-light: #f1f5f9;
    /* Light gray for light mode areas */

    --text-white: #ffffff;
    --text-gray: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);

    /* Gradientes Premium */
    --gradient-primary: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    --gradient-accent: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
    --gradient-dark: linear-gradient(145deg, #334155 0%, #1e293b 100%);
    --gradient-card: linear-gradient(145deg, rgba(51, 65, 85, 0.8) 0%, rgba(30, 41, 59, 0.9) 100%);

    /* Service Category Colors con Gradientes */
    --service-ac: #06B6D4;
    --service-ac-gradient: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
    --service-auto: #64748B;
    --service-auto-gradient: linear-gradient(135deg, #64748B 0%, #475569 100%);
    --service-home: #0EA5E9;
    --service-home-gradient: linear-gradient(135deg, #0EA5E9 0%, #0369A1 100%);
    --service-clean: #14B8A6;
    --service-clean-gradient: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%);
    --service-assist: #F59E0B;
    --service-assist-gradient: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);

    /* Shadows Premium */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-accent: 0 4px 14px rgba(59, 130, 246, 0.4);
    --shadow-accent-lg: 0 8px 24px rgba(59, 130, 246, 0.5);

    --container-width: 1200px;
    --header-height: 90px;
    /* Reducido para ser más moderno */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
}

/* Tipografía Premium */
h1,
h2,
h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

body,
p,
span,
a,
li {
    font-family: 'Inter', sans-serif;
}

/* Scroll To Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 110px;
    right: 35px;
    background-color: var(--accent);
    color: var(--bg-darker);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    background-color: var(--accent-hover);
}

.scroll-top-btn.visible {
    display: flex;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    text-transform: none;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    transition: opacity 0.3s;
    border-radius: inherit;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    border: none;
    box-shadow: var(--shadow-accent);
}

.btn-primary::before {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    opacity: 0;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-accent-lg);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-white);
    backdrop-filter: blur(10px);
}

.btn-outline::before {
    background: rgba(255, 255, 255, 0.15);
    opacity: 0;
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-outline:hover::before {
    opacity: 1;
}

.text-accent {
    color: var(--accent);
}

/* Header con Glassmorphism */
header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    height: 80px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.logo img {
    height: 70px;
    transition: all 0.3s ease;
}

header.scrolled .logo img {
    height: 60px;
}

.logo i {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 35px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(15px);
    padding: 12px 40px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.7)), url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    max-width: 600px;
}

.hero-subtitle {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Floating Info Cards (Overlapping Hero) */
.info-bar {
    margin-top: -80px;
    z-index: 10;
    position: relative;
    margin-bottom: 4rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item {
    padding: 2.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s;
    position: relative;
}

.info-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.info-item:hover::before {
    opacity: 0.05;
}

.info-item:last-child {
    border-right: none;
}

.info-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.info-item p {
    font-size: 0.9rem;
    color: var(--text-gray);
    position: relative;
    z-index: 1;
}

/* Services Section */
.section-padding {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header h2 span {
    color: var(--accent);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--gradient-dark);
    overflow: hidden;
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1 1 320px;
    max-width: 380px;
    box-shadow: var(--shadow-md);
}

.service-card.suspended {
    filter: grayscale(1);
    opacity: 0.7;
    cursor: not-allowed;
}

.service-card.suspended .service-link {
    display: none;
}

/* Borde animado con gradiente */
.service-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card.ac::before {
    background: var(--service-ac-gradient);
}

.service-card.auto::before {
    background: var(--service-auto-gradient);
}

.service-card.home::before {
    background: var(--service-home-gradient);
}

.service-card.clean::before {
    background: var(--service-clean-gradient);
}

.service-card.assist::before {
    background: var(--service-assist-gradient);
}

/* Iconos con gradientes */
.service-card.ac .service-icon-box {
    background: var(--service-ac-gradient);
}

.service-card.auto .service-icon-box {
    background: var(--service-auto-gradient);
}

.service-card.home .service-icon-box {
    background: var(--service-home-gradient);
}

.service-card.clean .service-icon-box {
    background: var(--service-clean-gradient);
}

.service-card.clean .service-icon-box i {
    color: var(--bg-darker) !important;
}

.service-card.assist .service-icon-box {
    background: var(--service-assist-gradient);
}


.service-img {
    height: 280px;
    background-color: #333;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

/* Overlay oscuro en imágenes */
.service-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    transition: opacity 0.3s;
}

.service-card:hover .service-img::after {
    opacity: 0.7;
}

/* Icon box overlay on image */
.service-icon-box {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #ffffff;
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

.service-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.3;
    min-height: 3.2rem;
    /* Ensures titles align */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-content p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    flex: 1;
}

.service-link {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    /* Pushes link to bottom */
    letter-spacing: 1px;
}

.service-link:hover {
    gap: 10px;
}

/* Contact / Call to Action */
.cta-section {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), url('../images/cta-bg.jpg');
    background-size: cover;
    background-attachment: fixed;
    text-align: center;
    color: white;
}

/* Form Styles Premium */
.form-box {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-white);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-control::placeholder {
    color: rgba(148, 163, 184, 0.6);
}

/* Footer */
footer {
    background-color: var(--bg-darker);
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.footer-col ul li a {
    transition: all 0.3s;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    font-size: 0.9rem;
}


/* WhatsApp Floating Button Premium */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%);
    color: white;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
    margin-top: 2px;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 900px) {
    .container {
        padding: 0 15px;
    }

    header .logo {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        background: rgba(15, 23, 42, 0.5);
        backdrop-filter: blur(10px);
        padding: 5px 20px;
        border-radius: 40px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    header .logo img {
        height: 60px !important;
        /* Smaller logo for mobile island */
    }

    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--text-white);
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(15, 23, 42, 0.5);
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--bg-card);
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        border-top: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    /* Hide the 'Agendar Cita' button on mobile header to save space, or move it to menu */
    header .btn {
        display: none;
    }

    .hero {
        min-height: 500px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .info-bar {
        margin-top: 0;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Menu Toggle Button (Default Hidden) */
.menu-toggle {
    display: none;
}

/* Success Modal */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    /* Star hidden for fade in */
    transition: opacity 0.3s ease;
}

.success-modal.active {
    display: flex;
    opacity: 1;
}

.success-content {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 90%;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.success-modal.active .success-content {
    transform: translateY(0);
}

.success-icon {
    width: 70px;
    height: 70px;
    background: var(--accent);
    color: var(--bg-darker);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.success-content h3 {
    color: var(--text-white);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.success-content p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

/* About Us Section */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-section {
    background-color: var(--bg-dark);
}

.about-img-box {
    position: relative;
    height: 500px;
}

.about-img-main {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.about-experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--accent);
    color: var(--bg-darker);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.3);
}

.exp-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.exp-text {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 5px;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-item i {
    font-size: 1.5rem;
    margin-top: 5px;
}

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--text-white);
}

.feature-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.about-stat-item {
    text-align: center;
}

.about-stat-item h3 {
    color: var(--accent);
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.about-stat-item p {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-img-box {
        height: 400px;
        order: 2;
    }

    .about-content {
        order: 1;
    }

    .about-experience-badge {
        right: 0;
        bottom: -20px;
        padding: 1.5rem;
    }
}