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

/* Version 1.2 - Carousel fixes */

:root {
    --primary: #2d5f7f;
    --primary-light: #4a8bb5;
    --secondary: #7fa99d;
    --text-dark: #2c3e50;
    --text-light: #6c7a89;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Header */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
    margin-left: 1.5rem;
}

.top-bar a:hover {
    text-decoration: underline;
}

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

nav {
    padding: 1.25rem 0;
}

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

.logo {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.2;
}

.logo span {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-light);
    margin-top: 0.1rem;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 0.95rem;
}

.nav-links a:hover {
    background: var(--primary);
    color: #fffef7;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(45, 95, 127, 0.95) 0%, rgba(74, 139, 181, 0.95) 100%), 
                url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--white);
    color: var(--primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 1rem;
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--primary);
}

.bg-light {
    background: var(--bg-light);
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Soins Grid */
.soins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.soin-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.soin-card:hover {
    transform: translateY(-5px);
}

.soin-img {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.soin-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(45, 95, 127, 0.3), rgba(74, 139, 181, 0.3));
}

.soin-content {
    padding: 1.5rem;
}

.soin-content h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* K-Laser Section */
.klaser-section {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    color: var(--white);
    padding: 4rem 0;
}

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

.klaser-text h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.klaser-text p {
    line-height: 1.8;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.klaser-text ul {
    list-style: none;
    margin: 1.5rem 0;
}

.klaser-text li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.klaser-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: bold;
}

.klaser-image {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.klaser-image img {
    width: 100%;
    border-radius: 8px;
}

.klaser-badge {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

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

.contact-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

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

.map-container {
    margin-top: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* Carousel Container */
.carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 60px;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 12px;
    min-height: 320px;
    touch-action: pan-y pinch-zoom;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 1.5rem;
    will-change: transform;
}

.carousel-track .doc-card {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.carousel-btn:hover {
    background: var(--primary-light);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-light);
    opacity: 0.3;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.carousel-dot.active {
    background: var(--primary);
    opacity: 1;
    transform: scale(1.2);
}

.doc-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    background: var(--primary);
    color: #fffef7;
}

.doc-card:hover .doc-icon {
    transform: scale(1.1);
}

.doc-card:hover h3,
.doc-card:hover p {
    color: #fffef7;
}

.doc-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.doc-card h3 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.doc-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.read-more,
span.read-more {
    display: inline-block;
    padding: 12px 24px;
    background-color: #456b85;
    color: #ffffff;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-top: 1rem;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    line-height: 1.5;
}

.doc-card:hover .read-more,
.doc-card:hover span.read-more {
    background-color: #ffffff;
    color: #456b85;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--white);
    margin: 2rem auto;
    padding: 3rem;
    border-radius: 16px;
    max-width: 800px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.3);
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    color: var(--text-light);
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary);
}

#modalBody h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

#modalBody h3 {
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

#modalBody h4 {
    color: var(--primary);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

#modalBody p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
}

#modalBody ul, #modalBody ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

#modalBody li {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

#modalBody strong {
    color: var(--primary);
}

.info-box {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    margin: 1.5rem 0;
}

.info-box p {
    margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq-section {
    background: var(--bg-light);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.faq-question {
    width: 100%;
    background: var(--white);
    border: none;
    padding: 1.5rem 2rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question.active {
    background: var(--primary);
    color: var(--white);
}

.faq-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.faq-question span:nth-child(2) {
    flex: 1;
}

.faq-arrow {
    font-size: 1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-question.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    padding: 0 2rem;
}

.faq-answer.active {
    max-height: 1000px;
    padding: 1.5rem 2rem 2rem 2rem;
}

.faq-answer p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.faq-answer ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.faq-answer li {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.faq-answer strong {
    color: var(--primary);
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin-bottom: 0.5rem;
}

footer a {
    color: var(--white);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-content {
        position: relative;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 1rem);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 0;
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
        border-radius: 8px;
        gap: 0;
        z-index: 100;
        list-style: none;
    }

    .nav-links li {
        width: 100%;
        margin: 0;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 1rem 2rem;
        border: none;
        border-bottom: 1px solid var(--bg-light);
        text-align: left;
        background: var(--white);
        transition: all 0.3s ease;
        border-radius: 0;
    }

    .nav-links li:first-child a {
        border-radius: 8px 8px 0 0;
    }

    .nav-links li:last-child a {
        border-bottom: none;
        border-radius: 0 0 8px 8px;
    }

    .nav-links a:hover,
    .nav-links a:active {
        background: var(--primary);
        color: var(--white);
        transform: none;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

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

    .btn-secondary {
        margin-left: 0;
        margin-top: 1rem;
    }

    .top-bar .container {
        flex-direction: column;
        text-align: center;
    }

    .top-bar a {
        margin-left: 0;
    }

    .klaser-content {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }
    
    #modalBody h2 {
        font-size: 1.5rem;
    }

    .faq-question {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 1.5rem;
    }

    .faq-answer.active {
        padding: 1.2rem 1.5rem 1.5rem 1.5rem;
    }

    .scroll-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    /* Carousel responsive */
    .carousel-container {
        padding: 0 45px;
    }

    .carousel-wrapper {
        min-height: 240px;
        padding: 0;
        width: 100%;
    }

    .carousel-track {
        gap: 0;
        align-items: stretch;
    }

    .carousel-track .doc-card {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
        width: 100%;
        padding: 1.5rem;
        min-height: auto;
        margin: 0;
        box-sizing: border-box;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .doc-card .doc-icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }

    .doc-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }

    .doc-card p {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
        line-height: 1.5;
    }

    .read-more {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .carousel-track .doc-card {
        flex: 0 0 calc(50% - 0.5rem);
        min-width: calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }
}
