/* ===== VARIABLES CSS ===== */
:root {
    /* Professional Psychology Palette */
    --primary-color: #4a7c7e;
    --primary-dark: #37595a;
    --primary-light: #6b9ea0;
    --secondary-color: #a67c52;
    --accent-color: #d4a574;
    --accent-light: #e8c9a6;
    --text-color: #2d3748;
    --text-light: #718096;
    --bg-color: #ffffff;
    --bg-light: #f7f9fb;
    --bg-secondary: #edf2f7;
    --border-color: #e2e8f0;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(74, 124, 126, 0.12);
    --shadow-hover: 0 8px 30px rgba(74, 124, 126, 0.18);
    --transition: all 0.3s ease;
    
    /* Typography */
    --font-family: 'Poppins', sans-serif;
    --big-font: 3rem;
    --h1-font: 2.5rem;
    --h2-font: 2rem;
    --h3-font: 1.5rem;
    --normal-font: 1rem;
    --small-font: 0.875rem;
    
    /* Z-index */
    --z-fixed: 100;
    --z-modal: 1000;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--normal-font);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

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

button {
    cursor: pointer;
    border: none;
    outline: none;
}

/* ===== REUSABLE CLASSES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

.section__title {
    font-size: var(--h1-font);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section__subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3.5rem;
    font-size: var(--h3-font);
    font-weight: 400;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    font-size: var(--normal-font);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-block {
    width: 100%;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: var(--z-fixed);
    transition: var(--transition);
}

.header.scroll-header {
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

.nav__logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.nav__logo:hover {
    color: var(--primary-dark);
}

.nav__logo-svg {
    height: 45px;
    width: auto;
}

.nav__logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav__logo-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.nav__logo i {
    font-size: 1.5rem;
}

.nav__list {
    display: flex;
    gap: 2rem;
}

.nav__link {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav__link:hover,
.nav__link.active {
    color: var(--primary-color);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__toggle,
.nav__close {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-toggle {
    display: flex;
    gap: 0.25rem;
    background: var(--bg-light);
    padding: 0.25rem;
    border-radius: 8px;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
}

.lang-btn:hover {
    color: var(--primary-color);
}

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

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero__container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.hero__title {
    font-size: var(--big-font);
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
    font-size: var(--h2-font);
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero__description {
    font-size: var(--h3-font);
    color: #ffffff;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

.fade-in-delay {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.3s;
}

.fade-in-delay-2 {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.6s;
}

.fade-in-delay-3 {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.9s;
}

/* Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

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

/* ===== INTRO SECTION ===== */
.intro-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.intro-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -5%;
    width: 40%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 124, 126, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.intro-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.intro-img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 6px solid white;
    transition: var(--transition);
    aspect-ratio: 3/4;
    display: flex;
}

.intro-img-wrapper:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.intro-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(74, 124, 126, 0.1) 100%);
    pointer-events: none;
}

.intro-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.intro-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.intro-title {
    font-size: var(--h1-font);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.intro-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.intro-stats {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.stat-item:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.stat-item i {
    font-size: 2rem;
    color: var(--primary-color);
    min-width: 40px;
}

.stat-title {
    font-size: var(--h3-font);
    color: var(--text-color);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.stat-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

/* ===== SERVICES SECTION ===== */
.services {
    background-color: var(--bg-light);
    padding: 5rem 0;
}

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

.service__card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: left;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.service__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.service__icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    background: rgba(44, 95, 95, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary-color);
}

.service__title {
    font-size: var(--h3-font);
    margin-bottom: 1rem;
    color: var(--text-color);
}

.service__description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.service__link {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-block;
    margin-top: 0.5rem;
    transition: var(--transition);
}

.service__link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* ===== OFFICE SECTION ===== */
.office-section {
    padding: 6rem 0;
    background: white;
}

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

.office-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.office-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.office-image:hover .office-img {
    transform: scale(1.02);
}

.office-title {
    font-size: var(--h1-font);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.office-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.office-text .btn {
    margin-top: 1.5rem;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 6rem 0;
    background: var(--bg-light);
}

.about__container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.about__img-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 4px solid white;
    transition: var(--transition);
}

.about__img-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.about__img-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.about__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about__content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about__text {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.about__title {
    font-size: var(--h2-font);
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about__description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.about__description:last-child {
    margin-bottom: 0;
}

.about__values {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-color);
}

.about__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about__values-title {
    font-size: var(--h3-font);
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.about__values-list {
    display: grid;
    gap: 0.75rem;
}

.about__values-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-light);
}

.about__values-list i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* ===== QUALIFICATIONS / TIMELINE ===== */
.qualifications {
    background-color: var(--bg-light);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline__item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline__item::before {
    content: '';
    position: absolute;
    left: -3.6rem;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.timeline__date {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: var(--small-font);
}

.timeline__content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.timeline__content:hover {
    box-shadow: var(--shadow);
    transform: translateX(5px);
    border-color: var(--accent-color);
}

.timeline__title {
    font-size: var(--h3-font);
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.timeline__description {
    color: var(--text-light);
}

/* ===== CONTACT SECTION ===== */
.contact__container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact__info-title {
    font-size: var(--h2-font);
    margin-bottom: 2rem;
    color: var(--text-color);
}

.contact__item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.contact__item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.contact__item i {
    font-size: 1.25rem;
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    background: rgba(44, 95, 95, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact__item h4 {
    font-size: var(--normal-font);
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.contact__item p {
    color: var(--text-light);
    font-size: var(--small-font);
}

/* ===== CONTACT FORM ===== */
.contact__form {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.contact__form-title {
    font-size: var(--h2-font);
    margin-bottom: 2rem;
    color: var(--text-color);
}

.form__group {
    position: relative;
    margin-bottom: 2rem;
}

.form__input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: var(--normal-font);
    font-family: var(--font-family);
    transition: var(--transition);
    background: var(--bg-light);
}

.form__input:hover {
    background: white;
}

.form__input:focus {
    border-color: var(--primary-color);
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(44, 95, 95, 0.05);
}

.form__input:focus + .form__label,
.form__input:not(:placeholder-shown) + .form__label {
    top: -10px;
    left: 10px;
    font-size: var(--small-font);
    color: var(--primary-color);
    background: white;
    padding: 0 0.5rem;
}

.form__label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-light);
    transition: var(--transition);
    pointer-events: none;
}

.form__textarea {
    min-height: 150px;
    resize: vertical;
}

.form__error {
    color: #dc3545;
    font-size: var(--small-font);
    margin-top: 0.25rem;
    display: block;
}

.form__success {
    display: none;
    padding: 1rem;
    background: #d4edda;
    color: #155724;
    border-radius: 10px;
    margin-top: 1rem;
    text-align: center;
}

.form__success.show {
    display: block;
}

/* ===== FOOTER ===== */
.footer {
    background: #2a3d3d;
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__title {
    font-size: var(--h3-font);
    margin-bottom: 1rem;
}

.footer__description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer__subtitle {
    font-size: var(--h3-font);
    margin-bottom: 1rem;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__link {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer__link:hover {
    color: white;
    padding-left: 0.5rem;
}

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

.footer__social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer__social-link:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer__bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__copy {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--small-font);
}

.footer__legal {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: var(--small-font);
}

.footer__legal-link {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer__legal-link:hover {
    color: white;
}

.footer__legal span {
    color: rgba(255, 255, 255, 0.3);
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scrolltop {
    position: fixed;
    right: 1.5rem;
    bottom: -100px;
    background: var(--primary-color);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    box-shadow: 0 4px 20px rgba(74, 124, 126, 0.4);
    z-index: 9998;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
}

.scrolltop:hover {
    background: var(--primary-dark);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 25px rgba(74, 124, 126, 0.6);
}

.scrolltop:active {
    transform: translateY(-2px) scale(0.95);
}

.scrolltop.show-scroll {
    bottom: 2rem;
    opacity: 1;
    visibility: visible;
}

/* Mobile optimizations */
@media screen and (max-width: 768px) {
    .scrolltop {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        right: 1rem;
    }
    
    .scrolltop.show-scroll {
        bottom: 1.5rem;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 968px) {
    :root {
        --big-font: 2.5rem;
        --h1-font: 2rem;
        --h2-font: 1.75rem;
        --h3-font: 1.25rem;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: var(--bg-color);
        padding: 5rem 2rem 2rem;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        overflow-y: auto;
    }

    .nav__menu.show-menu {
        right: 0;
    }

    /* Mobile menu backdrop */
    .nav__backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
    }

    body.menu-open {
        overflow: hidden;
    }

    .nav__list {
        flex-direction: column;
        gap: 2rem;
    }

    .nav__link::after {
        display: none;
    }

    .nav__close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        display: block;
        font-size: 1.5rem;
        color: var(--text-color);
        cursor: pointer;
        transition: var(--transition);
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
    }

    .nav__close:hover {
        background: var(--bg-light);
        color: var(--primary-color);
    }

    .nav__toggle {
        display: block;
    }

    .intro-content,
    .about__container,
    .contact__container,
    .office-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .intro-img-wrapper {
        max-width: 350px;
        margin: 0 auto;
    }

    .intro-stats {
        gap: 1rem;
    }

    .stat-item {
        padding: 1.25rem;
    }

    .timeline {
        padding-left: 2rem;
    }

    .timeline__item::before {
        left: -2.6rem;
    }
}

@media screen and (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1.25rem;
    }

    .hero__description {
        font-size: 1rem;
    }

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

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

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== SERVICE DETAIL PAGES ===== */
.service-hero {
    background: var(--bg-light);
    padding: 8rem 0 4rem;
    text-align: center;
}

.service-hero__icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: rgba(44, 95, 95, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
}

.service-hero__title {
    font-size: var(--big-font);
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.service-hero__subtitle {
    font-size: var(--h3-font);
    color: #ffffff;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.service-content {
    background: white;
}

.service-detail {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.service-detail__main {
    background: white;
}

.service-detail__title {
    font-size: var(--h2-font);
    color: var(--text-color);
    margin: 2.5rem 0 1.5rem;
}

.service-detail__title:first-child {
    margin-top: 0;
}

.service-detail__text {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-detail__list {
    color: var(--text-light);
    line-height: 1.8;
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.service-detail__list li {
    margin-bottom: 0.75rem;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.problem-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 6px;
    transition: var(--transition);
}

.problem-item:hover {
    background: white;
    box-shadow: var(--shadow);
}

.problem-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.problem-item span {
    color: var(--text-color);
    font-size: 0.95rem;
}

.service-info-box {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.service-info-box__title {
    font-size: var(--h3-font);
    color: var(--text-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.service-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.service-info-item:last-of-type {
    border-bottom: none;
    margin-bottom: 2rem;
}

.service-info-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
    width: 30px;
    flex-shrink: 0;
}

.service-info-item strong {
    display: block;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.service-info-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.other-services-list {
    list-style: none;
}

.other-services-list li {
    margin-bottom: 1rem;
}

.other-services-list a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
    padding: 0.75rem;
    border-radius: 6px;
    transition: var(--transition);
}

.other-services-list a:hover {
    background: white;
    color: var(--primary-color);
    transform: translateX(5px);
}

.other-services-list i {
    font-size: 0.85rem;
    color: var(--primary-color);
}

/* Responsive Service Detail */
@media screen and (max-width: 968px) {
    .service-detail {
        grid-template-columns: 1fr;
    }

    .service-info-box {
        position: relative;
        top: 0;
    }

    .service-hero {
        padding: 6rem 0 3rem;
    }

    .service-hero__icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

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

/* ===== DROPDOWN MENU ===== */
.nav__item--dropdown {
    position: relative;
}

.nav__link i.fa-chevron-down {
    font-size: 0.7rem;
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.nav__item--dropdown:hover .nav__link i.fa-chevron-down {
    transform: rotate(180deg);
}

.nav__dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--bg-color);
    min-width: 250px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    transform: translateY(-15px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    border: 2px solid var(--primary-light);
    pointer-events: none;
}

/* Área extendida para mantener dropdown abierto */
.nav__item--dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -20px;
    right: -20px;
    height: 20px;
    background: transparent;
}

.nav__item--dropdown:hover .nav__dropdown,
.nav__dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
}

/* Mantener el dropdown visible un poco más después de quitar el hover */
.nav__dropdown {
    transition-delay: 0.15s;
}

.nav__item--dropdown:hover .nav__dropdown {
    transition-delay: 0s;
}

.nav__dropdown li {
    list-style: none;
}

.nav__dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    transition: var(--transition);
    text-decoration: none;
}

.nav__dropdown-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.nav__dropdown-link i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

/* ===== CONTACT LINKS ===== */
.contact__item--link {
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
}

.contact__item--link:hover {
    background: var(--bg-light);
    transform: translateX(5px);
}

/* ===== HERO BACKGROUNDS ===== */
.hero, .service-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero::before, .service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero__container, .service-hero__content {
    position: relative;
    z-index: 2;
}

.hero__overlay {
    z-index: 0;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-color);
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

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

.cookie-banner__text h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.cookie-banner__text p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

.cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-banner__link {
    color: var(--primary-color);
    text-decoration: underline;
    font-size: 0.9rem;
    transition: var(--transition);
}

.cookie-banner__link:hover {
    color: var(--primary-dark);
}

.cookie-banner__btn {
    white-space: nowrap;
    padding: 0.75rem 2rem;
}

/* ===== LEGAL PAGES ===== */
.legal-page {
    min-height: 80vh;
    padding: 6rem 0 4rem;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.legal-content h2 {
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.legal-content h3 {
    color: var(--text-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.legal-content ul, .legal-content ol {
    margin: 1rem 0 1rem 2rem;
    color: var(--text-light);
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content strong {
    color: var(--text-color);
    font-weight: 600;
}

.cookies-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.cookies-table th,
.cookies-table td {
    padding: 1rem;
    text-align: left;
    border: 1px solid var(--border-color);
}

.cookies-table th {
    background: var(--bg-light);
    color: var(--primary-color);
    font-weight: 600;
}

.cookies-table tr:nth-child(even) {
    background: var(--bg-light);
}

/* ===== RESPONSIVE DROPDOWN & COOKIE BANNER ===== */
@media screen and (max-width: 968px) {
    .nav__dropdown {
        position: static;
        box-shadow: none;
        background: var(--bg-secondary);
        margin-top: 0.5rem;
        border-radius: 6px;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0;
    }
    
    .nav__item--dropdown.active .nav__dropdown {
        max-height: 300px;
        padding: 0.5rem 0;
    }
    
    .nav__link i.fa-chevron-down {
        margin-left: auto;
    }
    
    .nav__item--dropdown > .nav__link {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .cookie-banner__content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner__actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-banner__btn {
        width: 100%;
    }
}