/* ==========================================
   Dra. Liz Martínez - Professional Dental Website
   ========================================== */

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

:root {
    --primary: #454d5d;
    --primary-dark: #363c48;
    --light: #f1f0f0;
    --white: #ffffff;
    --text-dark: #272c36;
    --text-muted: #6b7280;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

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

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

/* ==========================================
   Navigation
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ==========================================
   Buttons
   ========================================== */

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1rem;
}

/* ==========================================
   Hero Section
   ========================================== */

.hero {
    background: var(--primary);
    color: var(--white);
    padding: 8rem 0 5rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-tagline {
    font-size: 1.25rem;
    font-style: italic;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-carousel {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 500px;
}

.hero-carousel-track {
    position: relative;
    width: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-slide:first-child {
    position: relative;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

.hero-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.hero-dot:hover,
.hero-dot.active {
    background: var(--white);
    border-color: var(--white);
}

.hero-accent {
    position: absolute;
    width: 100%;
    max-width: 500px;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    top: 20px;
    left: 20px;
    z-index: 1;
}

/* ==========================================
   Stats Section
   ========================================== */

.stats {
    background: var(--white);
    padding: 4rem 0;
    margin-top: -2rem;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

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

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================
   Section Headers
   ========================================== */

.section-header {
    margin-bottom: 3rem;
}

.section-header.centered {
    text-align: center;
}

.section-header.light h2,
.section-header.light .section-label {
    color: var(--white);
}

.section-label {
    display: inline-block;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
}

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

/* ==========================================
   About Section
   ========================================== */

.about {
    padding: 6rem 0;
    background: var(--light);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.about-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.about-card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.about-card-content {
    padding: 2rem;
}

.about-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.about-card-content p {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

/* ==========================================
   Credentials Section
   ========================================== */

.credentials {
    padding: 6rem 0;
    background: var(--white);
}

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

.credential-card {
    background: var(--light);
    padding: 2rem;
    border-radius: 15px;
    transition: var(--transition);
}

.credential-card:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.credential-card:hover .credential-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.credential-icon {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary);
    transition: var(--transition);
}

.credential-icon svg {
    width: 24px;
    height: 24px;
}

.credential-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================
   Services Section
   ========================================== */

.services {
    padding: 6rem 0;
    background: var(--primary);
    color: var(--white);
}

.services-content {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.services-content p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.8;
}

/* Carousel */
.carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

.carousel-track {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
    box-shadow: var(--shadow);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

.carousel-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border: 2px solid var(--white);
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.carousel-dot:hover,
.carousel-dot.active {
    background: var(--white);
}

/* ==========================================
   Contact Section
   ========================================== */

.contact {
    padding: 6rem 0;
    background: var(--light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.contact-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.social-link:hover img {
    filter: brightness(0) invert(1);
}

.social-link img {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.cta-card {
    background: var(--primary);
    color: var(--white);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
}

.cta-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.cta-card p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-card .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.cta-card .btn-primary:hover {
    background: var(--light);
}

/* ==========================================
   Map Section
   ========================================== */

.map-section {
    background: var(--primary);
}

.map-header {
    padding: 4rem 0 3rem;
}

.map-address {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-top: 1rem;
}

.map-container {
    width: 100%;
    line-height: 0;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    filter: grayscale(20%);
    transition: var(--transition);
}

.map-container iframe:hover {
    filter: grayscale(0%);
}

/* ==========================================
   Footer
   ========================================== */

.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.75rem;
    }

    .hero-image {
        order: -1;
    }

    .hero-carousel {
        max-width: 400px;
    }

    .hero-accent {
        max-width: 400px;
    }

    .hero-buttons {
        justify-content: center;
    }

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

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

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

@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .logo img {
        height: 40px;
    }

    .nav-links {
        display: none;
    }

    .nav-cta {
        margin-left: auto;
    }

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

    .hero-text h1 {
        font-size: 2.25rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

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

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

    .carousel {
        max-width: 100%;
        border-radius: 15px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }

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

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

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero-text h1 {
        font-size: 1.85rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .hero-carousel {
        max-width: 300px;
    }

    .hero-accent {
        display: none;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .carousel-prev {
        left: 0.5rem;
    }

    .carousel-next {
        right: 0.5rem;
    }

    .carousel-dots {
        bottom: 1rem;
        gap: 0.5rem;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .cta-card {
        padding: 2rem;
    }

    .cta-card h3 {
        font-size: 1.5rem;
    }
}
