/* 
    SERENE DENTAL STUDIO - Design System
    Theme: Organic Comfort (Calidez Orgánica)
*/

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

:root {
    /* Color Palette */
    --sage-green: #8DAA91;
    --sage-dark: #6A856E;
    --sage-light: #B8CDC1;
    --cream: #FDFBF7;
    --cream-dark: #F5F1E9;
    --charcoal: #333333;
    --sand: #D1BFA7;
    --white: #FFFFFF;
    
    /* Spacing & Radii */
    --radius-lg: 2.5rem;
    --radius-md: 1.5rem;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    background: var(--sage-green);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.15s ease-out, background-color 0.3s ease, opacity 0.3s ease;
    opacity: 0.5;
    transform: translate(-50%, -50%);
}

.custom-cursor.hovered {
    transform: translate(-50%, -50%) scale(3.5);
    background-color: var(--sand);
    opacity: 0.3;
}

/* Hide default cursor on interactive elements for better effect */
a, button, .btn-cta, .service-card {
    cursor: pointer;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--cream);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

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

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

/* Layout Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

header.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    box-shadow: var(--shadow-soft);
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--sage-dark);
    flex: 0 0 auto;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    margin-left: auto; /* Empuja todo a la derecha */
    margin-right: 3rem; /* Espacio con el botón */
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--sage-green);
}

.btn-cta {
    background: var(--sage-green);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(141, 170, 145, 0.3);
}

.btn-cta:hover {
    background: var(--sage-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(141, 170, 145, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background-color: var(--cream);
    /* Usamos una textura más limpia y sutil */
    background-image: url('https://www.transparenttextures.com/patterns/pinstriped-suit.png'); 
    background-blend-mode: soft-light;
    opacity: 0.98;
    overflow: hidden;
    position: relative;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--cream);
    background-image: url('https://www.transparenttextures.com/patterns/pinstriped-suit.png'); 
    background-blend-mode: soft-light;
    overflow: hidden;
    position: relative;
}

/* El layout ahora se gestiona con Tailwind en el HTML */

.hero h1 {
    font-family: 'Playfair Display', serif;
    color: var(--sage-dark);
}

/* Text Splitting Animation */
.split-text {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.split-text span {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.split-text.active span {
    transform: translateY(0);
}

.hero-image {
    background: url('hero.png') center/cover;
}

.btn-cta-hero {
    background: var(--sage-dark);
    color: var(--white);
    border-radius: 3rem;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(106, 133, 110, 0.2);
}

.btn-cta-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(106, 133, 110, 0.3);
}

/* Services Section */
.services {
    padding: 8rem 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-title p {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #666;
    line-height: 1.5;
    font-style: italic; /* Opcional: suele quedar muy bien en Playfair para citas o introducciones */
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.service-card {
    padding: 3rem;
    background: var(--cream);
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--white);
    border-color: var(--sage-light);
    box-shadow: var(--shadow-soft);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--sage-green);
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Philosophy Section */
.philosophy {
    padding: 8rem 0;
    display: flex;
    align-items: center;
    gap: 5rem;
}

.philosophy-image {
    flex: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 500px;
    background: var(--sand);
}

.philosophy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.philosophy-text {
    flex: 1;
}

/* Testimonials Section */
.testimonials {
    padding: 10rem 0;
    background: var(--white);
    text-align: center;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    margin-top: 4rem;
}

.testimonial-item {
    padding: 2rem;
}

.testimonial-item p {
    font-size: 1.4rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--sage-dark);
    line-height: 1.4;
    margin-bottom: 2.5rem;
}

.testimonial-avatar {
    width: 180px;
    height: 180px;
    background: var(--sage-light);
    border-radius: 50%;
    margin: 0 auto 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 4rem;
    box-shadow: var(--shadow-soft);
    overflow: hidden; /* Para que la imagen sea circular */
    border: 4px solid var(--white);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la cara se vea bien */
}

.testimonial-author {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Contact Footer */
footer {
    background: var(--sage-dark);
    color: var(--white);
    padding: 5rem 0 2rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .hero-image { position: relative; width: 100%; right: 0; margin-top: 2rem; border-radius: var(--radius-md); }
    .hero { height: auto; padding-top: 150px; flex-direction: column; }
    .nav-links { display: none; }
}
