@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --onenine-primary-gradient: linear-gradient(135deg, #EAD6CB 0%, #E3C3B0 50%, #CFA58E 100%);
    --onenine-black: #161616;
    --onenine-dark-grey: #272727;
    --onenine-light-grey: #FAFAFA;
    --onenine-white: #ffffff;

    /* Default - Elegant Champagne Theme */
    --accent-gradient: var(--onenine-primary-gradient);
    --bg-primary: #ffffff;
    --bg-secondary: #fdfbf9;
    --text-primary: #2c2927;
    --text-secondary: #747474;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    /* Smoother premium transition */
    --letter-spacing-tight: -0.02em;
    --letter-spacing-normal: 0em;
}

/* Base Refinements */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* cursor: none; Removed for a more professional look */
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    letter-spacing: var(--letter-spacing-tight);
    font-weight: 500;
}

p {
    letter-spacing: var(--letter-spacing-normal);
}

/* Custom Cursor */
.custom-cursor {
    display: none;
    /* Removed for a more premium professional feel */
}

.custom-cursor.hover {
    width: 60px;
    height: 60px;
    opacity: 0.5;
    background: #fff;
    mix-blend-mode: exclusion;
}

/* Dynamic Mesh Gradient Background */
.mesh-gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background-color: var(--bg-primary);
    filter: blur(140px);
    opacity: 0.25;
    transition: background-color 0.8s ease;
}

.mesh-ball {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: var(--accent-gradient);
    animation: moveMesh 20s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}

.mesh-ball:nth-child(2) {
    width: 800px;
    height: 800px;
    right: -200px;
    top: -200px;
    animation-duration: 25s;
    animation-delay: -5s;
    opacity: 0.6;
}

.mesh-ball:nth-child(3) {
    width: 500px;
    height: 500px;
    left: -100px;
    bottom: -100px;
    animation-duration: 30s;
    animation-delay: -10s;
    opacity: 0.5;
}

@keyframes moveMesh {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(20%, 30%) rotate(180deg);
    }

    100% {
        transform: translate(-10%, -20%) rotate(360deg);
    }
}

/* Staggered Reveal Animation */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* Theme Variantes */
body.blue {
    --accent-gradient: linear-gradient(121deg, #56CCF2 0.16%, #2F80ED 50.16%, #2D9CDB 100.16%);
}

body.purple {
    --accent-gradient: linear-gradient(121deg, #D797FF 0.16%, #C0F 50.16%, #9500CA 100.16%);
}

body.orange {
    --accent-gradient: linear-gradient(121deg, #FF8956 0.16%, #FF4C00 50.16%, #FF7A00 100.16%);
}

body.green {
    --accent-gradient: linear-gradient(121deg, #6FCF97 0.16%, #27AE60 50.16%, #219653 100.16%);
}

body.black-white {
    --accent-gradient: linear-gradient(121deg, #B1B1B1 0.16%, #000000 50.16%, #747474 100.16%);
}

/* Dark Mode Overrides */
[data-theme="dark"] {
    --bg-primary: #161616;
    --bg-secondary: #272727;
    --text-primary: #ffffff;
    --text-secondary: #B1B1B1;
    --glass-bg: rgba(22, 22, 22, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition);
}

header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 0;
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper,
.logo-link {
    background: var(--glass-bg);
    padding: 10px 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.03);
}

.logo-wrapper img,
.logo-link img,
.logo-img {
    height: 70px;
    width: auto;
    transition: var(--transition);
}

/* Light Mode Overrides for Logo - Invert if dark logo but here we assume a specific image */
/* Dark Mode Refinement for Logo */
[data-theme="dark"] .logo-wrapper {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .logo-wrapper img {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

nav {
    background: var(--glass-bg);
    padding: 10px 40px;
    border-radius: 100px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: -0.02em;
    transition: var(--transition);
}

nav a:hover {
    color: var(--text-secondary);
}

/* Color Picker Button */
.theme-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.color-picker-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: 2px solid var(--bg-primary);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.color-picker-btn:hover {
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out, transform 8s linear, filter 2s ease-in-out;
    transform: scale(1.15);
    filter: blur(20px) brightness(0.6);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px) brightness(0.7);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1000px;
    color: #fff;
    padding: 0 20px;
}

.hero-logo {
    width: 250px;
    margin-bottom: 40px;
    animation: fadeInScale 1.5s ease;
}

.hero h1 {
    font-size: 96px;
    line-height: 0.95;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
}

.hero p {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 48px;
    font-weight: 300;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Premium Button */
.btn-premium {
    display: inline-block;
    position: relative;
    padding: 2px;
    background: var(--accent-gradient);
    border-radius: 100px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: var(--transition);
}

.btn-premium span {
    display: block;
    background: #161616;
    padding: 18px 40px;
    border-radius: 100px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.btn-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Sections */
.section {
    padding: 160px 60px;
    max-width: 1440px;
    margin: 0 auto;
}

.section-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: block;
}

.section h2 {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 60px;
}

/* Swiper / Portfolio */
.portfolio-slider {
    overflow: hidden;
    position: relative;
}

.swiper-slide {
    width: 320px;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.swiper-slide:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Tribute Elements */
.tribute-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    opacity: 0;
    transition: var(--transition);
}

.swiper-slide:hover .tribute-overlay {
    opacity: 1;
}

/* Floating Hearts */
#hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3000;
}

.floating-heart {
    position: absolute;
    color: #ff4b2b;
    font-size: 24px;
    user-select: none;
    pointer-events: none;
    animation: floatUp var(--duration, 2s) ease-in forwards;
}

@keyframes floatUp {
    0% {
        transform: translate(0, 0) scale(var(--s, 1));
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    75% {
        transform: translate(calc(var(--tx) * 0.8), calc(var(--ty) * 0.8)) rotate(calc(var(--rot) * 0.5)) scale(calc(var(--s, 1) * 3));
        opacity: 1;
    }

    90% {
        transform: translate(calc(var(--tx) * 0.95), calc(var(--ty) * 0.95)) rotate(calc(var(--rot) * 0.8)) scale(calc(var(--s, 1) * 5));
        opacity: 1;
    }

    100% {
        transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(calc(var(--s, 1) * 8));
        opacity: 0;
    }
}

/* Blog Styles */
.blog-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card-premium {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.blog-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.blog-card-img {
    height: 240px;
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-body {
    padding: 30px;
}

.blog-card-body h3 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 700;
}

.blog-card-body p {
    font-size: 15px;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Service Icon Styling */
.service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 30px;
    background: var(--bg-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 2px solid var(--glass-border);
    transition: var(--transition);
}

.service-icon svg,
.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    color: var(--text-primary);
}

.card.review-single:hover .service-icon {
    background: var(--accent-gradient);
    border-color: transparent;
    transform: scale(1.1) rotate(5deg);
}

.card.review-single:hover .service-icon svg,
.card.review-single:hover .service-icon img {
    filter: brightness(0) invert(1);
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 64px;
    height: 64px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

.btn-simple {
    color: var(--text-primary);
    font-weight: 600;
    margin-top: 20px;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition);
}

.btn-simple:hover {
    color: var(--accent-primary);
    transform: translateX(5px);
}

/* Contact Form */
.contact-form-wrapper {
    max-width: 800px;
    margin: 40px auto 0;
    padding: 60px;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.03);
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 24px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gradient);
    background: var(--bg-primary);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.btn-submit {
    width: 100%;
    border: none;
    cursor: pointer;
}

/* Modal Enhancements */
.modal-content-full {
    max-width: 900px;
    width: 90%;
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 80px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.swiper-slide:hover img {
    transform: scale(1.1);
}

/* Specialist Cards */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.card.review-single {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 60px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.card.review-single:hover {
    background: var(--bg-primary);
    transform: translateY(-10px);
    border-color: var(--accent-gradient);
}

.card.review-single h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

/* Theme Modal */
.theme-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.theme-modal.active {
    display: flex;
}

.theme-options {
    background: var(--bg-primary);
    padding: 60px;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.color-circles {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: transform 0.3s ease;
}

.circle:hover {
    transform: scale(1.2);
}

.circle.active {
    border-color: var(--text-primary);
}

.circle.c-rainbow {
    background: var(--onenine-primary-gradient);
}

.circle.c-blue {
    background: linear-gradient(121deg, #56CCF2, #2F80ED);
}

.circle.c-purple {
    background: linear-gradient(121deg, #D797FF, #C0F);
}

.circle.c-orange {
    background: linear-gradient(121deg, #FF8956, #FF4C00);
}

.circle.c-green {
    background: linear-gradient(121deg, #6FCF97, #27AE60);
}

/* Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 64px;
    }

    .hero-logo {
        width: 180px;
    }

    .section h2 {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 48px;
    }

    .nav-container {
        padding: 0 30px;
    }

    nav ul {
        display: none;
    }
}

/* SOS Guide Styles */
.sos-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    z-index: 4000;
    align-items: center;
    justify-content: center;
}

.sos-modal.active {
    display: flex;
}

.sos-content {
    background: var(--bg-primary);
    width: 90%;
    max-width: 600px;
    padding: 60px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    position: relative;
    text-align: center;
}

.sos-step {
    display: none;
}

.sos-step.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

.sos-btn {
    background: #E74C3C;
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.sos-btn:hover {
    transform: scale(1.05);
    background: #C0392B;
}

/* Calculator Styles */
.calculator-card {
    max-width: 900px;
    margin: 40px auto;
    background: var(--bg-primary);
    padding: 60px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
}

.calc-option {
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.calc-option.selected {
    border-color: var(--accent-primary);
    background: var(--accent-gradient);
    color: white;
}

/* Roadmap Styles */
.roadmap-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    padding-top: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.roadmap-line {
    position: absolute;
    top: 55px;
    left: 12.5%;
    width: 75%;
    height: 2px;
    background: var(--glass-border);
    z-index: 0;
}

.roadmap-item {
    position: relative;
    z-index: 1;
    text-align: center;
}

.roadmap-dot {
    width: 32px;
    height: 32px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 30px;
    box-shadow: 0 0 20px var(--accent-primary);
}

.roadmap-content {
    background: var(--bg-primary);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    height: 100%;
}

.roadmap-content:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.roadmap-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.roadmap-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.roadmap-content p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

@media (max-width: 992px) {
    .roadmap-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .roadmap-line {
        display: none;
    }
}

/* Red Veterinaria & Admin Styles */
.vet-admin-panel {
    display: none;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    margin: 40px auto;
    max-width: 1000px;
}

body.admin-mode .vet-admin-panel {
    display: block;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.admin-table th {
    font-weight: 600;
    color: var(--text-secondary);
}

.btn-small {
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-approve {
    background: rgba(39, 174, 96, 0.1);
    color: #27AE60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.btn-reject {
    background: rgba(235, 87, 87, 0.1);
    color: #EB5757;
    border: 1px solid rgba(235, 87, 87, 0.3);
}

body.admin-mode .card .btn-delete-vet {
    display: inline-block;
}

.btn-delete-vet {
    display: none;
    margin-top: 15px;
    width: 100%;
}

.admin-trigger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    opacity: 0.1;
    cursor: pointer;
    z-index: 99;
    border-radius: 50%;
}

.admin-trigger:hover {
    opacity: 0.5;
}

.location-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
    text-decoration: underline;
    font-size: 14px;
    margin-top: 10px;
    transition: var(--transition);
}

.location-link:hover {
    color: var(--text-primary);
}