/* ============================================
   Nova Care — Design System & Main Styles
   ============================================ */

/* ── Variables ── */
:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #38bdf8;
    --primary-glow: rgba(14, 165, 233, 0.25);
    --accent: #06b6d4;
    --bg-dark: #f0f9ff;
    --bg-darker: #e0f2fe;
    --bg-card: rgba(255, 255, 255, 0.65);
    --bg-card-hover: rgba(255, 255, 255, 0.9);
    --bg-footer: #0c1a2e;
    --text-light: #0f172a;
    --text-muted: rgba(15, 23, 42, 0.55);
    --gradient-primary: linear-gradient(135deg, #0ea5e9, #06b6d4);
    --gradient-hero: linear-gradient(160deg, #f0f9ff 0%, #e0f2fe 40%, #bae6fd 100%);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-card: 0 8px 32px rgba(14, 165, 233, 0.08);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

/* ── Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: none;
    /* Ocultar cursor nativo */
}

body.nav-open {
    overflow: hidden;
}

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

a:hover {
    color: var(--primary-light);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-light);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Header ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition);
    background: transparent;
}

.site-header.scrolled {
    background: rgba(11, 17, 32, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.6rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.site-header.scrolled .logo {
    color: #f1f5f9;
}

.site-header.scrolled .nav-link {
    color: rgba(241, 245, 249, 0.7);
}

.site-header.scrolled .nav-link:hover,
.site-header.scrolled .nav-link.active {
    color: #f1f5f9;
}

.site-header.scrolled .hamburger,
.site-header.scrolled .hamburger::before,
.site-header.scrolled .hamburger::after {
    background: #f1f5f9;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-light);
}

.logo-img {
    height: auto;
    max-height: 45px;
    width: auto;
    transition: transform var(--transition);
}

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

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

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.06);
}

.nav-link.cta-nav {
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 1.4rem;
}

.nav-link.cta-nav:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    width: 100%;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger {
    display: block;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(160deg, rgba(240, 249, 255, 0.85) 0%, rgba(224, 242, 254, 0.75) 40%, rgba(186, 230, 253, 0.65) 100%), url('../img/Pag/sliderprincipal1.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    padding: 8rem 0 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroGlow 6s ease-in-out infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroGlow 8s ease-in-out infinite alternate-reverse;
}

@keyframes heroGlow {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.2) translate(30px, -20px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.1);
    animation: badgePulse 3s infinite ease-in-out;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-badge i {
    font-size: 1rem;
    color: #e91e8c;
    /* Pink accent */
    filter: drop-shadow(0 0 5px rgba(233, 30, 140, 0.5));
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(14, 165, 233, 0.1);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 4px 25px rgba(14, 165, 233, 0.2);
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.2rem;
    line-height: 1.1;
}

.hero h1 .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.12rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 540px;
    line-height: 1.8;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
    cursor: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--primary-glow);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(233, 30, 140, 0.06);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: #6554ff;
    text-shadow: 0 0 20px rgba(101, 84, 255, 0.4);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
    margin-top: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ── Custom Cursor Styles ── */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    pointer-events: none;
    z-index: 10000;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transform: translate(-50%, -50%) rotate(-45deg);
    transition: transform 0.15s ease-out, color 0.3s ease;
    filter: drop-shadow(0 2px 5px rgba(14, 165, 233, 0.3));
}

#custom-cursor.hover {
    transform: translate(-50%, -50%) rotate(0deg) scale(1.3);
    color: var(--accent);
}

/* ── About Section ── */
.about-wrapper {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr; /* Imagen más pequeña, texto más amplio */
    gap: 6rem;
    align-items: center;
}

.about-image {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--gradient-primary);
    color: #fff;
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 10px 30px var(--primary-glow);
    animation: floatImage 5s ease-in-out infinite;
}

.exp-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.exp-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-features {
    margin-top: 2rem;
    display: grid;
    gap: 1.5rem;
}

.about-feature {
    display: flex;
    gap: 1.2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(14, 165, 233, 0.1);
    transition: all var(--transition);
}

.about-feature:hover {
    transform: translateX(10px);
    border-color: var(--primary);
}

.about-feature i {
    font-size: 1.5rem;
    color: var(--primary);
}

.about-feature h4 {
    margin-bottom: 0.3rem;
}

.about-feature p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ── Section Common ── */
.section {
    padding: 6rem 0;
    position: relative;
}

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

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

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

/* ── Team Section ── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid rgba(14, 165, 233, 0.1);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    z-index: 1;
}

.team-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(14, 165, 233, 0.05));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.team-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(14, 165, 233, 0.15);
    border-color: var(--primary);
}

.team-card:hover::after {
    opacity: 1;
}

.team-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
}

.team-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    mix-blend-mode: soft-light;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.team-card:hover .team-image::before {
    opacity: 0.4;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .team-image img {
    transform: scale(1.15) rotate(2deg);
}

.team-info {
    padding: 2rem 1.5rem;
    position: relative;
    background: var(--bg-card);
}

.team-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
    color: var(--text-light);
}

.team-role {
    display: block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.team-info p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    opacity: 0.8;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .team-social {
    transform: translateY(0);
    opacity: 1;
}

.team-social a {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(14, 165, 233, 0.1);
}

.team-social a:hover {
    background: var(--gradient-primary);
    color: #fff;
    transform: translateY(-5px) rotate(8deg);
    box-shadow: 0 10px 20px var(--primary-glow);
}

/* ── Services Section ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(14, 165, 233, 0.1);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 380px;
}

/* Imagen de fondo traslúcida */
.service-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    /* Muy traslúcida por defecto */
    filter: grayscale(40%) blur(2px);
    transition: all 0.6s ease;
    z-index: -2;
}

.service-card:hover .service-bg {
    opacity: 0.6;
    /* Se ilumina */
    filter: grayscale(0%) blur(0px);
    transform: scale(1.1);
}

/* Overlay oscuro para legibilidad del texto */
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(15, 23, 42, 0.95) 0%,
            rgba(15, 23, 42, 0.7) 40%,
            rgba(15, 23, 42, 0.4) 100%);
    transition: all 0.5s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.service-card:hover::after {
    background: linear-gradient(to top,
            rgba(15, 23, 42, 0.85) 0%,
            rgba(15, 23, 42, 0.4) 50%,
            transparent 100%);
}

.service-card:hover::after {
    background: linear-gradient(to top,
            rgba(15, 23, 42, 0.85) 0%,
            rgba(15, 23, 42, 0.4) 50%,
            transparent 100%);
}

.service-content {
    position: relative;
    z-index: 2;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(14, 165, 233, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    border: 1px solid rgba(14, 165, 233, 0.2);
    backdrop-filter: blur(5px);
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
    color: #fff;
    transform: rotateY(360deg) scale(1.1);
    box-shadow: 0 10px 20px var(--primary-glow);
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: #fff;
    /* Texto blanco para resaltar sobre el fondo oscuro */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.service-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: #fff;
    gap: 1rem;
}

/* ── Benefits Section ── */
.benefits-section {
    background: var(--bg-darker);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: rgba(233, 30, 140, 0.12);
}

.benefit-icon {
    width: 64px;
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: rgba(14, 165, 233, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin: 0 auto 1.8rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(14, 165, 233, 0.1);
}

.benefit-card:hover .benefit-icon {
    background: var(--gradient-primary);
    color: #fff;
    transform: scale(1.2) translateY(-5px);
    box-shadow: 0 15px 30px var(--primary-glow);
}

.benefit-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.benefit-card:hover h3 {
    color: var(--primary);
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    transition: color 0.3s ease;
}

.benefit-card:hover p {
    color: var(--text-light);
}

/* ── Contact Section ── */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    padding: 2rem 0;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info>p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-details li i {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(233, 30, 140, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-form-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select option {
    background: var(--bg-dark);
    color: var(--text-light);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

/* ── Page Detail (servicio.php) ── */
.page-detail {
    padding: 10rem 0 4rem;
    background: var(--gradient-hero);
    position: relative;
}

.page-detail::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
}

.detail-header {
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
}

.detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(233, 30, 140, 0.12);
    border: 1px solid rgba(233, 30, 140, 0.25);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.detail-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
}

.detail-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.detail-content {
    padding: 4rem 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.detail-text p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.detail-image {
    position: sticky;
    top: 120px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.2);
    animation: floatImage 6s ease-in-out infinite;
}

.detail-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.detail-image:hover img {
    transform: scale(1.05);
}

@keyframes floatImage {

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

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

.detail-list {
    list-style: none;
    margin: 2.5rem 0;
}

.detail-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(14, 165, 233, 0.08);
    color: var(--text-light);
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.detail-list li:hover {
    transform: translateX(10px);
}

.detail-list li i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 0.2rem;
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

.detail-cta {
    margin-top: 5rem;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.detail-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0.5;
    z-index: 0;
}

.detail-cta>* {
    position: relative;
    z-index: 1;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Alert Messages ── */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
}

.alert-success {
    background: rgba(6, 214, 160, 0.12);
    border: 1px solid rgba(6, 214, 160, 0.3);
    color: var(--accent);
}

.alert-error {
    background: rgba(239, 71, 111, 0.12);
    border: 1px solid rgba(239, 71, 111, 0.3);
    color: #ef476f;
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(11, 17, 32, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 0.5rem;
        padding: 2rem;
        transition: right 0.4s ease;
    }

    .main-nav .nav-link {
        color: rgba(241, 245, 249, 0.7);
    }

    .main-nav .nav-link:hover {
        color: #f1f5f9;
    }

    .main-nav.open {
        right: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.8rem 1.2rem;
        width: 100%;
    }

    .hero {
        padding: 7rem 0 3rem;
    }

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

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

    .section {
        padding: 4rem 0;
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
    }
}