/* Custom Properties */
:root {
    --primary-color: #E84DA5;
    --primary-light: #F8EAF1;
    --secondary-color: #F8EAF1;
    --accent-color: #2D1628;
    --bg-color: #FEF9FB;
    --text-color: #4A4A4A;
    --text-dark: #2D1628;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --border-radius: 0px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: transparent;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
    font-weight: 700;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.text-primary {
    color: var(--primary-color);
}

.centered {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(232, 77, 165, 0.3);
}

.btn-primary:hover {
    background-color: #d13d91;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 77, 165, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

.btn-white-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-white-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    padding: 20px 0;
    transition: var(--transition);
}

.header.sticky {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 100px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.header.sticky .logo img {
    height: 60px;
}

.nav ul {
    display: flex;
    gap: 30px;
}

.nav a {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.nav a:hover {
    color: var(--primary-color);
}

.mobile-menu-icon {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px;
    background: radial-gradient(circle at top right, var(--primary-light), transparent 60%);
    overflow: hidden;
}

.hero .video-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 50px;
}

.badge {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
    text-shadow: 0 0 15px rgba(254, 249, 251, 1);
}

.hero p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 35px;
    max-width: 500px;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(254, 249, 251, 1);
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.oval-vertical {
    border-radius: 150px 150px 40px 40px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 10px solid var(--white);
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4 / 5.2;
}

.oval-vertical img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Specialties Section */
.specialties {
    padding: 100px 0;
    background-color: var(--primary-light);
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.spec-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.spec-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.spec-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.spec-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.spec-card p {
    font-size: 0.95rem;
    color: #666;
}

/* Video Card inside Specialties */
.video-spec-card {
    padding: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
    border: none;
    border-radius: var(--border-radius);
    background-color: var(--accent-color);
}

@media (min-width: 768px) {
    .video-spec-card {
        grid-column: 1 / -1; /* Horizontal full width */
        flex-direction: row; /* Horizontal layout side-by-side */
        align-items: center;
    }
}

.spec-video {
    width: 100%;
    height: auto; /* Maintains original aspect ratio without cropping */
    display: block;
    z-index: 0;
}

@media (min-width: 768px) {
    .spec-video {
        width: 50%; /* Half width for video */
        background-color: #000;
    }
}

.video-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(45, 22, 40, 0.95) 0%, rgba(45, 22, 40, 0.1) 60%);
    z-index: 1;
    pointer-events: none;
}

@media (min-width: 768px) {
    .video-overlay-gradient {
        display: none; /* Hide gradient on desktop where text is separate */
    }
}

.video-text {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 30px;
    color: var(--white);
    width: 100%;
    pointer-events: none;
}

@media (min-width: 768px) {
    .video-text {
        position: relative; /* Static position next to video */
        width: 50%; /* Half width for text */
        padding: 50px;
        pointer-events: auto;
    }
}

.video-text h3 {
    color: var(--white);
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.video-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0;
}

/* Technology Section */
.technology {
    padding: 100px 0;
    background-color: var(--white);
}

.technology .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.tech-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.tech-image .image-wrapper {
    position: relative;
    max-width: 450px;
    z-index: 1;
}

.main-tech-img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 100%;
    display: block;
}

.floating-image {
    position: absolute;
    bottom: -30px;
    right: -10px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--white);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.card-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.card-content p {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.4;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.tech-content p {
    margin-bottom: 25px;
}

.tech-list {
    margin-bottom: 40px;
}

.tech-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 500;
}

.tech-list i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.tech-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.mini-card {
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: var(--transition);
}

.mini-card:hover {
    transform: translateY(-5px);
    background-color: var(--primary-light);
}

.mini-card-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.mini-card h4 {
    font-size: 1rem;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--primary-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content p {
    margin-bottom: 20px;
    color: #555;
}

.about-content .lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.signature {
    margin-top: 40px;
}

.signature h4 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.signature p {
    font-size: 0.9rem;
    opacity: 0.7;
}

.about-image {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.about-image .oval-frame {
    max-width: 400px;
    border-radius: 150px 150px 40px 40px;
    aspect-ratio: 4/5;
}

.experience-badge {
    position: relative;
    margin: 20px auto 0;
    width: max-content;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 20px 40px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.experience-badge .number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin-top: 5px;
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-top: 10px;
}

.results-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
}

.results-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}

.results-grid::-webkit-scrollbar {
    display: none;
}

.result-case {
    flex: 0 0 100%;
    scroll-snap-align: center;
    padding: 0 10px;
    text-align: center;
}

.slider-btn {
    background-color: var(--white);
    color: var(--primary-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    z-index: 10;
    flex-shrink: 0;
}

.slider-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .slider-btn {
        display: none; /* Hide buttons on mobile, rely on swipe */
    }
    .results-slider-container {
        gap: 0;
    }
}

.before-after-wrapper {
    display: flex;
    flex-direction: row; /* Side-by-side */
    gap: 0; /* Remove gap so they touch */
    margin-bottom: 25px;
    border: 5px solid var(--white); /* Frame around both */
    box-shadow: var(--shadow);
    border-radius: 0; /* Square edges */
    overflow: hidden;
    position: relative;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Divider line between images */
.before-after-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background-color: var(--white);
    transform: translateX(-50%);
    z-index: 5;
}

.case-image {
    position: relative;
    width: 50%;
    aspect-ratio: 4 / 5; /* Taller rectangular aspect for half-image */
}

/* Remove individual frames since wrapper has it */
.oval-frame {
    border-radius: 0;
    border: none;
    box-shadow: none;
    aspect-ratio: unset;
}

.label {
    position: absolute;
    bottom: 10px;
    background-color: rgba(45, 22, 40, 0.85); /* Darker elegant label */
    color: var(--white);
    padding: 4px 12px;
    border-radius: 0px; /* Square label */
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
}

/* Position labels on outer edges */
.before .label {
    left: 10px;
    transform: none;
}

.after .label {
    right: 10px;
    left: auto;
    transform: none;
    background-color: var(--primary-color); /* Highlight 'after' result */
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Ensure teeth stay centered */
    transition: transform 0.5s ease;
}

.result-case:hover .case-image img {
    transform: scale(1.05); /* Subtle zoom on hover */
}

.result-case h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.link-primary {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 2px;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: var(--primary-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1rem;
    color: #555;
    font-style: italic;
    margin-bottom: 30px;
    flex-grow: 1;
}

.testimonial-author {
    border-top: 1px solid var(--primary-light);
    padding-top: 20px;
}

.stars {
    color: #FFD700;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.testimonial-author h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.testimonial-author span {
    font-size: 0.85rem;
    color: #888;
}

/* Final CTA */
.final-cta {
    padding: 100px 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-color), #d13d91);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px;
    border-radius: 40px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    gap: 30px;
}

.cta-box h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
    max-width: 600px;
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 500px;
}

.cta-btns {
    display: flex;
    gap: 20px;
}

.cta-illustration {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.discreet-img {
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.discreet-img:hover {
    transform: scale(1.02);
}

/* Footer */
.footer {
    background-color: var(--accent-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
}

/* Responsiveness */
@media (max-width: 768px) {
    .header { 
        background-color: var(--white); 
        padding: 10px 0;
    }
    .logo img {
        height: 60px;
    }
    .header.sticky .logo img {
        height: 50px;
    }
    .nav, .header-cta { display: none; }
    .nav.active { 
        display: block; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background-color: var(--white); 
        padding: 20px; 
        box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
        border-top: 1px solid var(--primary-light);
    }
    .nav.active ul { flex-direction: column; gap: 20px; text-align: center; }
    .mobile-menu-icon { display: block; }
    
    .hero { padding: 120px 0 60px; }
    .hero .container, .technology .container, .footer-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 40px;
    }
    
    .hero h1 { font-size: 2.2rem; }
    .hero p { margin: 0 auto 30px; }
    .hero-btns { flex-direction: column; width: 100%; }
    .hero-btns .btn { width: 100%; }
    
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-image { order: -1; } /* Image first on mobile */
    
    .cta-box { 
        flex-direction: column; 
        text-align: center; 
        padding: 40px 20px; 
    }
    .cta-box h2 { font-size: 2rem; }
    .cta-btns { 
        flex-direction: column; 
        width: 100%; 
        gap: 15px;
    }
    .cta-btns .btn { width: 100%; }
    .cta-illustration { display: none; }
    
    .footer-grid { gap: 30px; }
}

@media (max-width: 480px) {
    .section-title { font-size: 1.8rem; }
    .before-after-wrapper { border-width: 3px; }
    .badge { font-size: 0.65rem; }
}
