:root {
    --bg: #0b0b0f;
    --surface: #12121a;
    --accent: #e63946;
    --text: #e0e0e0;
    --text-muted: #888;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    font-size: 16px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
}

/* Owl cursor custom (opcional, solo para desktop) */
/* body { cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2002000/svg" width="40" height="40" viewBox="0 0 24 24" fill="%23e63946"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>'), auto; } */

/* Hero con búho animado */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at 30% 70%, rgba(230, 57, 70, 0.15), transparent 50%), var(--bg);
}

.owl-anim {
    position: absolute;
    width: 500px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    pointer-events: none;
    background: url('https://buho-nero.com/owl-silhouette.svg') center/contain no-repeat;
    /* ← aquí subes tu SVG del búho negro */
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 1100px;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(4rem, 10vw, 9rem);
    font-weight: 900;
    background: linear-gradient(90deg, #fff, var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.6rem;
    margin: 2rem 0;
    color: #aaa;
}

.cta-glow {
    display: inline-block;
    padding: 20px 70px;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent);
    color: #000;
    border-radius: 60px;
    text-decoration: none;
    box-shadow: 0 0 40px rgba(230, 57, 70, 0.6);
    transition: all 0.4s;
    animation: pulse 3s infinite;
}

.cta-glow:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 80px rgba(230, 57, 70, 1);
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(230, 57, 70, 0.6);
    }

    50% {
        box-shadow: 0 0 70px rgba(230, 57, 70, 0.9);
    }
}

/* Navbar flotante */
nav {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(18, 18, 26, 0.85);
    backdrop-filter: blur(20px);
    padding: 15px 40px;
    border-radius: 60px;
    z-index: 9999;
    border: 1px solid rgba(230, 57, 70, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

nav .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 2rem;
    font-weight: 900;
    color: white;
}

nav .logo span {
    color: var(--accent);
}

nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Hamburger hidden on desktop */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

nav a {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -8px;
    left: 50%;
    background: var(--accent);
    transition: all 0.4s;
}

nav a:hover::after {
    width: 100%;
    left: 0;
}

/* Secciones generales */
section {
    padding: 140px 20px;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

h2 {
    font-size: 4.5rem;
    text-align: center;
    margin-bottom: 100px;
    background: linear-gradient(90deg, #aaa, var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Grid de servicios con efecto glass + hover 3D */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
}

.card {
    background: rgba(18, 18, 26, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.card:hover {
    transform: translateY(-20px) rotateX(5deg);
    box-shadow: 0 30px 80px rgba(230, 57, 70, 0.3);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.card img.contain-mode {
    object-fit: contain;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    object-position: center;
}

.card-content {
    padding: 30px;
}

.card h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: white;
}

.price {
    color: var(--accent);
    font-size: 1.8rem;
    font-weight: 900;
}

/* Service card specific tweaks */
.service-card {
    cursor: pointer;
    background: #fff;
    color: #111;
}

.service-card .card-title {
    font-size: 1.15rem;
    margin: 0;
    color: #111;
}

.service-card .card-price {
    color: var(--accent);
    font-weight: 900;
}

/* Modal / Lightbox for service details */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
}

.modal {
    background: #fff;
    width: min(1600px, 98%);
    max-height: 98vh;
    overflow: auto;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #eee;
}

.modal-body {
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

.modal-gallery-main {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    flex: 0 0 72px;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.thumb.active {
    border-color: var(--accent);
}

.modal-info {
    background: transparent;
    padding: 10px;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
}

.hidden {
    display: none !important;
}

/* Testimonios con efecto parallax ligero */
.testimonios {
    background: linear-gradient(135deg, #12121a, #0b0b0f);
}

/* Footer */
footer {
    background: #050507;
    padding: 100px 20px 50px;
    text-align: center;
    border-top: 1px solid rgba(230, 57, 70, 0.2);
}

.hero p {
    font-size: 1rem;
    margin: 1.5rem 0;
}

.cta-glow {
    width: 100%;
    padding: 15px 0;
    text-align: center;
    display: block;
}

nav .logo {
    font-size: 1.5rem;
}

nav a {
    font-size: 0.9rem;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
}

footer {
    padding: 60px 20px 30px;
}

footer .social a {
    font-size: 2rem;
    margin: 0 10px;
}

/* Adjust modal for very small screens */
.modal-gallery-main {
    height: 220px;
}

.thumb {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
}

/* Mobile Responsiveness & Hamburger Menu */
@media (max-width: 768px) {

    /* Navbar adjustments */
    nav {
        width: 90%;
        padding: 15px 20px;
    }

    .nav-container {
        flex-wrap: wrap;
    }

    .hamburger {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 20px;
        margin-top: 20px;
        text-align: center;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav ul.active {
        display: flex;
    }

    /* Typography scaling */
    .hero h1 {
        font-size: 3rem;
        /* Was clamp(4rem...) */
    }

    h2 {
        font-size: 2.5rem;
        /* Was 4.5rem */
        margin-bottom: 50px;
    }

    /* Layout adjustments */
    section {
        padding: 60px 20px;
        /* Was 140px */
    }

    .grid {
        grid-template-columns: 1fr;
        /* Stack cards */
        gap: 30px;
    }

    /* Disable heavy hover effects on mobile */
    .card:hover {
        transform: none;
        box-shadow: none;
    }

    /* Modal adjustments */
    .modal-body {
        grid-template-columns: 1fr;
        height: auto;
        display: flex;
        flex-direction: column;
    }

    .modal-gallery-main {
        height: 250px;
    }

    .modal {
        width: 95%;
        margin: 10px;
        max-height: 85vh;
    }
}