@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Playfair+Display:ital,wght@0,600;1,400&display=swap');

:root {
    --bg-dark: #0a0a0c;
    --bg-card: rgba(22, 22, 26, 0.7);
    --bg-card-hover: rgba(30, 30, 37, 0.85);
    --text-light: #f3f4f6;
    --text-muted: #9ca3af;
    --accent: #e60012;
    /* Los Javes Red */
    --accent-hover: #ff2a3a;
    --accent-rgb: 230, 0, 18;
    --danger: #ef4444;
    --success: #10b981;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(230, 0, 18, 0.3);
    --font-heading: 'Outfit', sans-serif;
    /* Cleaner typography matching the logo */
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 70vw;
    height: 70vw;
    max-width: 700px;
    max-height: 700px;
    transform: translate(-50%, -50%);
    background-image: url('logo.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.20;
    /* Reintroduced watermark at 20% opacity */
    z-index: -2;
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #2a2a35;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Glassmorphism Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 12, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

header.scrolled {
    padding: 0.8rem 5%;
    background: rgba(10, 10, 12, 0.95);
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.logo img {
    height: 55px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

header.scrolled .logo img {
    height: 45px;
}

.logo span {
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

nav a:hover,
nav a.active {
    color: var(--accent);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: var(--transition);
}

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

.btn-cta {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transition: var(--transition);
    z-index: -1;
}

.btn-cta:hover {
    color: var(--bg-dark);
}

.btn-cta:hover::before {
    left: 0;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 5% 4rem 5%;
    background: radial-gradient(circle at center, rgba(30, 30, 45, 0.2) 0%, var(--bg-dark) 80%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

.hero-content {
    max-width: 100%;
    text-align: left;
    z-index: 2;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 2;
}

.visual-frame {
    position: relative;
    width: 420px;
    height: 520px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: rgba(22, 22, 26, 0.5);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.visual-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.visual-glow-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--accent), transparent, var(--accent)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0.5;
    pointer-events: none;
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    background: rgba(22, 22, 26, 0.85);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.floating-badge:hover {
    transform: scale(1.05);
    border-color: var(--accent);
}

.floating-badge i {
    font-size: 1.5rem;
    color: var(--accent);
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.badge-text strong {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Floating Animation & Positions */
.badge-1 {
    top: 10%;
    left: -10%;
    animation: float1 4s ease-in-out infinite;
}

.badge-2 {
    bottom: 10%;
    right: -5%;
    animation: float2 5s ease-in-out infinite;
}

@keyframes float1 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

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

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

    .badge-1 {
        left: 5%;
    }

    .badge-2 {
        right: 5%;
    }
}

.hero-badge {
    display: inline-block;
    border: 1px solid rgba(214, 175, 55, 0.4);
    background: rgba(214, 175, 55, 0.05);
    color: var(--accent);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.8vw, 3rem);
    /* Reduced size to improve visual layout */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.hero h1 span {
    display: block;
    background: linear-gradient(135deg, #fff 0%, #a8a29e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 em {
    font-style: italic;
    font-weight: 400;
    color: #e5e5e5;
    /* Silver/chrome style to avoid eye fatigue */
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 0 2.5rem 0;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
}

.btn-primary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--accent);
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(230, 0, 18, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    border-color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* Sections General */
section {
    padding: 8rem 5%;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-subtitle {
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 0.8rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3rem 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--text-light);
}

.service-link span {
    transition: var(--transition);
}

.service-link:hover span {
    transform: translateX(5px);
}

/* Process Section */
.process {
    background: rgba(15, 15, 18, 0.6);
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-img {
    flex: 1;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.step-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(80%) grayscale(10%);
    transition: var(--transition);
}

.process-step:hover .step-img img {
    transform: scale(1.05);
    filter: brightness(95%);
}

.step-info {
    flex: 1;
    background: rgba(10, 10, 12, 0.85);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(214, 175, 55, 0.15);
    line-height: 1;
    margin-bottom: 1rem;
}

.step-info h3 {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.step-info p {
    color: var(--text-muted);
    font-weight: 300;
}

/* Interactive Appointment / Contact Section */
.booking-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 4rem;
    backdrop-filter: blur(10px);
}

.booking-info h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.booking-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 300;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.contact-icon {
    font-size: 1.5rem;
    color: var(--accent);
}

.contact-text h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.contact-text p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Booking Form */
.booking-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 0.8rem 1.2rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input,
.form-group select {
    height: 50px;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%239ca3af' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 1.4rem;
    padding-right: 3rem;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.form-group select option {
    background-color: #16161a;
    color: #f3f4f6;
    padding: 1rem;
}

.form-group select option:disabled {
    color: #555566;
}

.booking-form button {
    grid-column: span 2;
    margin-top: 1rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 5% 2rem 5%;
    background: #060608;
}

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

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
    font-weight: 300;
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

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

/* Responsive adjustments */
@media (max-width: 968px) {
    .booking-container {
        grid-template-columns: 1fr;
        padding: 2.5rem;
    }

    .process-step {
        flex-direction: column;
        gap: 1.5rem;
    }

    .process-step:nth-child(even) {
        flex-direction: column;
    }

    .step-img {
        width: 100%;
        height: 250px;
    }

    nav {
        display: none;
        /* Can implement mobile burger if needed */
    }
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    background: var(--bg-card-hover);
}

.benefit-stat {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.benefit-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

.benefit-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 300;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    border-radius: 8px;
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.testimonial-quote {
    font-size: 1.6rem;
    color: rgba(230, 0, 18, 0.2);
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-light);
    font-weight: 300;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1f1f2e;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.author-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* FAQ Section */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--accent);
}

.faq-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
    color: var(--text-muted);
    font-weight: 300;
    font-size: 0.95rem;
    padding: 0 2rem;
}

.faq-item.active .faq-answer {
    padding: 0 2rem 1.8rem 2rem;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Mobile Devices Optimization */
@media (max-width: 768px) {
    .hero {
        padding-top: 14rem;
        padding-bottom: 3rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

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

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

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .hero-buttons a {
        width: 100%;
        text-align: center;
    }

    .visual-frame {
        width: 100%;
        max-width: 300px;
        height: auto;
        aspect-ratio: 4/5;
        margin: 0 auto;
    }

    .floating-badge {
        display: none;
        /* Hide floating badges on very small screens to avoid clutter */
    }

    .booking-form {
        grid-template-columns: 1fr;
    }

    .form-group.full-width,
    .booking-form button {
        grid-column: span 1;
    }

    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .btn-cta {
        width: 100%;
        text-align: center;
    }

    .products-grid,
    .benefits-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}