:root {
    --primary: #cfab5c;
    --primary-dark: #a88f47;
    --primary-light: #e8d9b8;
    --secondary: #1a2d40;
    --secondary-dark: #0f1a27;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-secondary: #999999;
    --border: #e0e0e0;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --star-color: #ffb800;
    --star-empty: #e0e0e0;
    --review-bg: #f9f9f9;
    --review-border: #e0e0e0;
    --text-primary: #1a1a1a;
    --text-muted: #666666;
    --bg-primary: #ffffff;
}

html.dark-mode {
    --text-dark: #f5f5f5;
    --text-light: #b0b0b0;
    --text-secondary: #888888;
    --border: #333333;
    --bg-light: #1e1e1e;
    --white: #2a2a2a;
    --review-bg: #2a2a2a;
    --review-border: #444444;
    --text-primary: #f5f5f5;
    --text-muted: #b0b0b0;
    --bg-primary: #1e1e1e;
    --star-empty: #666666;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    transition: var(--transition);
}

html.dark-mode body {
    background: #0a0a0a;
    color: var(--text-dark);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

html.dark-mode .header {
    background: #1a1a1a;
    border-bottom-color: #333333;
}

.header__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 80px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
    min-width: 120px;
    flex-shrink: 0;
}

.header__logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.header__brand-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.6px;
    line-height: 1;
}

.header__brand-text--full {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.2px;
    white-space: nowrap;
}

html.dark-mode .header__brand-text {
    color: #e8d9b8;
}

html.dark-mode .header__brand-text--full {
    color: #f5f5f5;
}

html.dark-mode .header__brand-main {
    color: #e8d9b8;
}

html.dark-mode .header__brand-sub {
    color: #b0b0b0;
}

html.dark-mode .header__brand-text {
    color: #e8d9b8;
}

.header__nav {
    display: flex;
    gap: 40px;
    flex: 1;
    justify-content: center;
}

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

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

.header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    position: relative;
}

.btn-theme {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: var(--transition);
    flex-shrink: 0;
}

html.dark-mode .btn-theme {
    background: #2a2a2a;
    border-color: #333333;
}

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

.icon-sun {
    display: block;
    width: 20px;
    height: 20px;
}

.icon-moon {
    display: none;
    width: 20px;
    height: 20px;
}

html.dark-mode .icon-sun {
    display: none;
}

html.dark-mode .icon-moon {
    display: block;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin: 0;
}

.menu-bar {
    width: 24px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

html.dark-mode .menu-bar {
    background: var(--text-dark);
}

.menu-toggle.active .menu-bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .menu-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.header__dropdown {
    position: absolute;
    top: 100%;
    right: 20px;
    background: var(--white);
    width: 280px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 999;
}

html.dark-mode .header__dropdown {
    background: #1a1a1a;
    border-left-color: #333333;
    border-bottom-color: #333333;
}

.header__dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    background: transparent;
}

html.dark-mode .dropdown-link {
    color: var(--text-dark);
    border-bottom-color: #333333;
}

.dropdown-link:last-child {
    border-bottom: none;
}

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

html.dark-mode .dropdown-link:hover {
    background: #2a2a2a;
}

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

.btn {
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    letter-spacing: 0.5px;
}

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

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

.btn--secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.btn--secondary:hover {
    background: var(--border);
}

.btn--cta {
    background: var(--primary);
    color: var(--text-dark);
}

.btn--cta:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

.btn--large {
    padding: 16px 32px;
    font-size: 1rem;
}

.quick-access {
    margin-top: 80px;
    padding: 20px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 100;
}

html.dark-mode .quick-access {
    background: #1a1a1a;
    border-bottom-color: #333333;
}

.quick-access__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    max-width: 1100px;
    margin: 0 auto;
}

.quick-access__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    text-align: center;
}

html.dark-mode .quick-access__link {
    background: #2a2a2a;
    border-color: #333333;
}

.quick-access__link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.quick-access__icon {
    font-size: 1.35rem;
    color: var(--primary);
    transition: var(--transition);
}

.quick-access__link:hover .quick-access__icon {
    color: var(--text-dark);
}

.quick-access__text {
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.hero {
    margin-top: 80px;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__background {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
}

html.dark-mode .hero__background {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
}

.hero__bg-gradient {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(207, 171, 92, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
}

.shape--1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: 10%;
    left: 5%;
    animation: float 6s ease-in-out infinite;
}

.shape--2 {
    width: 200px;
    height: 200px;
    background: var(--secondary);
    bottom: 10%;
    right: 10%;
    animation: float 8s ease-in-out infinite 1s;
}

.shape--3 {
    width: 150px;
    height: 150px;
    background: var(--primary);
    top: 50%;
    right: 5%;
    animation: float 7s ease-in-out infinite 2s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(30px);
    }
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero__title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -1px;
}

html.dark-mode .hero__title {
    color: #f5f5f5;
}

.hero__subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.servicios {
    padding: 80px 20px;
    background: var(--white);
}

html.dark-mode .servicios {
    background: #0a0a0a;
}

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

.section__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

html.dark-mode .section__title {
    color: #f5f5f5;
}

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

html.dark-mode .section__title--light {
    color: #f5f5f5;
}

.section__subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 50px;
}

.servicios__filters {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 60px;
}

.filter-btn {
    padding: 12px 24px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-dark);
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

html.dark-mode .filter-btn {
    background: #2a2a2a;
    border-color: #333333;
}

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

.filter-btn--active {
    background: var(--primary);
    color: var(--text-dark);
    border-color: var(--primary);
}

.filters-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.servicios__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.service-card--clickable {
    text-decoration: none;
    color: inherit;
    display: block;
}

html.dark-mode .service-card {
    background: #2a2a2a;
    border-color: #333333;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    transform: translateY(-8px);
}

.service-card__image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--bg-light);
}

html.dark-mode .service-card__image {
    background: #1e1e1e;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-card__image img {
    transform: scale(1.05);
}

.service-card__content {
    padding: 24px;
}

.service-card__category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-dark);
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

html.dark-mode .service-card__category {
    background: rgba(207, 171, 92, 0.2);
    color: #e8d9b8;
}

.service-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

html.dark-mode .service-card__title {
    color: #f5f5f5;
}

.service-card__description {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.6;
}

.service-card__cta {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.whyus {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
}

html.dark-mode .whyus {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
}

.whyus__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-top: 60px;
}

.whyus__features {
    display: grid;
    gap: 30px;
}

.feature {
    display: flex;
    gap: 20px;
}

.feature__icon {
    min-width: 50px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.feature__text h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

html.dark-mode .feature__text h3 {
    color: #f5f5f5;
}

.feature__text p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.whyus__image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-showcase {
    width: 100%;
    min-height: 260px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: linear-gradient(135deg, rgba(207, 171, 92, 0.14) 0%, rgba(26, 45, 64, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: var(--shadow-md);
}

html.dark-mode .logo-showcase {
    border-color: #333333;
    background: linear-gradient(135deg, rgba(207, 171, 92, 0.08) 0%, rgba(26, 45, 64, 0.22) 100%);
}

.logo-showcase__image {
    max-width: min(100%, 140px);
    max-height: 140px;
    object-fit: contain;
}

.logo-showcase__fallback {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -2px;
}

.contacto {
    padding: 80px 20px;
    background: var(--white);
}

html.dark-mode .contacto {
    background: #0a0a0a;
}

.contacto__content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-top: 60px;
    align-items: start;
}

.contacto__form,
.contacto__info {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

html.dark-mode .contacto__form,
html.dark-mode .contacto__info {
    background: #1e1e1e;
    border-color: #333333;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

html.dark-mode .form-label {
    color: #f5f5f5;
}

.input-field {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-dark);
    transition: var(--transition);
    font-family: inherit;
}

html.dark-mode .input-field {
    background: #2a2a2a;
    border-color: #333333;
    color: #f5f5f5;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(207, 171, 92, 0.1);
}

.input-field::placeholder {
    color: var(--text-secondary);
}

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

.contacto__info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
}

html.dark-mode .contacto__info h3 {
    color: #f5f5f5;
}

.info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-icon {
    font-size: 1.8rem;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.info-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-text {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

html.dark-mode .info-text {
    color: #f5f5f5;
}

.footer {
    background: var(--secondary-dark);
    color: var(--white);
    padding: 60px 20px 20px;
}

html.dark-mode .footer {
    background: #0a0a0a;
    border-top: 1px solid #333333;
}

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

.footer__col {
    color: rgba(255, 255, 255, 0.8);
}

.footer__col h4 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer__col ul {
    list-style: none;
}

.footer__col ul li {
    margin-bottom: 12px;
}

.footer__col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer__col ul li a:hover {
    color: var(--primary);
}

.footer__logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
}

.footer__col p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(207, 171, 92, 0.2);
    border-radius: 50%;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-icon:hover {
    background: var(--primary);
    color: var(--secondary-dark);
}

.footer__bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 1;
    visibility: visible;
    transition: var(--transition);
    padding: 20px;
}

.modal--hidden {
    opacity: 0;
    visibility: hidden;
}

.modal__content {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-lg);
}

html.dark-mode .modal__content {
    background: #2a2a2a;
    color: #f5f5f5;
}

.modal__content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

html.dark-mode .modal__content h2 {
    color: #f5f5f5;
}

.modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
}

.service-hero {
    margin-top: 80px;
    padding: 100px 20px 80px;
    position: relative;
    overflow: hidden;
    min-height: 340px;
    display: flex;
    align-items: center;
}

.service-hero__background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
}

html.dark-mode .service-hero__background {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
}

.service-hero__content {
    position: relative;
    z-index: 1;
}

.service-hero__title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.service-hero__subtitle {
    max-width: 700px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.service-description,
.similar-services {
    padding: 80px 20px;
}

.service-description {
    background: var(--white);
}

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

html.dark-mode .service-description {
    background: #0a0a0a;
}

html.dark-mode .similar-services {
    background: #111111;
}

.service-desc__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.service-desc__text h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.service-desc__text p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.service-features {
    list-style: none;
    display: grid;
    gap: 12px;
    color: var(--text-dark);
}

html.dark-mode .service-features {
    color: #f5f5f5;
}

.service-desc__image img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.cta-section {
    padding: 70px 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(207, 171, 92, 0.15) 0%, rgba(26, 45, 64, 0.08) 100%);
}

html.dark-mode .cta-section {
    background: linear-gradient(135deg, rgba(207, 171, 92, 0.08) 0%, rgba(26, 45, 64, 0.22) 100%);
}

.cta-section h2 {
    margin-bottom: 24px;
    font-size: 2rem;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-light);
    padding: 60px 20px;
    font-size: 0.95rem;
}

.section-margin {
    margin-bottom: 80px;
    margin-top: 40px;
}

#serviceGallery img {
    transition: transform 0.3s ease;
    border-radius: 8px;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

#serviceGallery img:hover {
    transform: scale(1.03);
}

.reviews-section {
    padding: 80px 20px;
    background: var(--white);
}

html.dark-mode .reviews-section {
    background: #0a0a0a;
}

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

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.reviews-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
}

.reviews-summary {
    flex-shrink: 0;
}

.rating-box {
    text-align: center;
    padding: 24px;
    background: var(--review-bg);
    border-radius: 16px;
    border: 1px solid var(--review-border);
    min-width: 180px;
}

.rating-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--star-color);
    line-height: 1;
}

.rating-count {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.stars-display {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin: 10px 0;
}

.star {
    font-size: 20px;
    line-height: 1;
    transition: all 0.2s ease;
}

.star--full {
    color: var(--star-color);
}

.star--empty {
    color: var(--star-empty);
}

.star--half {
    background: linear-gradient(90deg, var(--star-color) 50%, var(--star-empty) 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--star-color);
}

.star--small {
    font-size: 16px;
}

.star--large {
    font-size: 24px;
}

.review-form-section {
    background: var(--review-bg);
    border: 1px solid var(--review-border);
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
}

.review-form-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 20px 0;
}

.auth-required-message {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 14px;
}

html.dark-mode .auth-required-message {
    background: #664d03;
    border-color: #997404;
    color: #ffecb5;
}

.auth-required-message a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

#reviewForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid var(--review-border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--star-color);
    box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.stars-input {
    display: flex;
    gap: 8px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.star-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--star-empty);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
}

.star-btn::before {
    content: "★";
    font-size: 32px;
    line-height: 1;
}

.star-btn:hover {
    transform: scale(1.15);
    background: rgba(255, 184, 0, 0.1);
}

.star-btn.active {
    color: var(--star-color);
    transform: scale(1.1);
}

.star-btn.hover {
    color: var(--star-color);
    background: rgba(255, 184, 0, 0.1);
}

.star-btn:focus {
    outline: 2px solid var(--star-color);
    outline-offset: 2px;
}

.rating-text {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 5px;
}

.reviews-list-section {
    margin-top: 40px;
}

.reviews-list-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    background: var(--review-bg);
    border: 1px solid var(--review-border);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.review-item:hover {
    border-color: var(--star-color);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 12px;
}

.review-author {
    flex: 1;
}

.review-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.review-date {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.review-rating {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}

.review-rating .star {
    font-size: 18px;
}

.review-text {
    color: var(--text-primary);
    line-height: 1.7;
    margin: 0;
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 30px 20px;
}

@media (max-width: 1024px) {
    .whyus__content,
    .contacto__content,
    .service-desc__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .header__container {
        padding: 14px 16px 12px;
        min-height: auto;
        flex-wrap: wrap;
        gap: 12px;
    }

    .header__logo {
        display: flex;
        align-items: center;
        text-decoration: none;
        gap: 12px;
        min-width: 120px;
        flex-shrink: 0;
    }

    .header__logo-img {
        width: 48px;
        height: 48px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .header__brand-text {
        font-size: 1.15rem;
    }

    .header__brand-text--full {
        font-size: 0.82rem;
        white-space: normal;
        max-width: 150px;
        line-height: 1.1;
        font-weight: 700;
    }

    .header__actions {
        margin-left: auto;
        gap: 8px;
        justify-content: flex-end;
    }

    .header__nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        gap: 10px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .header__nav::-webkit-scrollbar {
        display: none;
    }

    .nav-link {
        white-space: nowrap;
        background: var(--bg-light);
        border: 1px solid var(--border);
        padding: 10px 14px;
        border-radius: 999px;
        font-size: 0.85rem;
    }

    html.dark-mode .nav-link {
        background: #2a2a2a;
        border-color: #333333;
    }

    .nav-link::after {
        display: none;
    }

    .header__dropdown {
        right: 16px;
        width: min(280px, calc(100vw - 32px));
    }

    .quick-access__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-access__link {
        padding: 14px 10px;
    }

    .quick-access__icon {
        font-size: 1.2rem;
    }

    .quick-access__text {
        font-size: 0.8rem;
    }

    .hero {
        margin-top: 150px;
        padding: 70px 16px 56px;
        min-height: auto;
    }

    .service-hero {
        margin-top: 150px;
        padding: 72px 16px 56px;
        min-height: auto;
    }

    .hero__title,
    .service-hero__title {
        font-size: 2rem;
        line-height: 1.15;
    }

    .hero__subtitle,
    .service-hero__subtitle {
        font-size: 1rem;
    }

    .servicios,
    .whyus,
    .contacto,
    .service-description,
    .similar-services,
    .cta-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section__title {
        font-size: 1.95rem;
        line-height: 1.15;
    }

    .section__subtitle {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    .servicios__filters {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        margin-bottom: 36px;
        scrollbar-width: none;
    }

    .servicios__filters::-webkit-scrollbar {
        display: none;
    }

    .filters-container {
        flex-wrap: nowrap;
    }

    .servicios__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card__content {
        padding: 20px;
    }

    .logo-showcase {
        min-height: 260px;
        padding: 24px;
    }

    .logo-showcase__image {
        max-width: 180px;
        max-height: 180px;
    }

    .logo-showcase__fallback {
        font-size: 2.8rem;
    }

    .contacto__form,
    .contacto__info,
    .modal__content {
        padding: 24px;
    }

    .footer {
        padding: 46px 16px 18px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer__bottom {
        padding-top: 22px;
        font-size: 0.82rem;
    }

    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .reviews-header h2 {
        font-size: 1.7rem;
    }

    .reviews-summary {
        width: 100%;
    }

    .rating-box {
        width: 100%;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .star-btn::before {
        font-size: 28px;
    }

    .review-form-section {
        padding: 20px;
    }

    .star--large {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .header__actions {
        width: auto;
        justify-content: flex-end;
    }

    .header__dropdown {
        right: 12px;
        width: min(260px, calc(100vw - 24px));
    }

    .quick-access__grid {
        grid-template-columns: 1fr;
    }

    .hero {
        margin-top: 196px;
        padding-top: 52px;
    }

    .service-hero {
        margin-top: 196px;
        padding-top: 52px;
    }

    .hero__title,
    .service-hero__title {
        font-size: 1.75rem;
    }

    .section__title {
        font-size: 1.7rem;
    }

    .service-desc__text h2,
    .cta-section h2 {
        font-size: 1.55rem;
    }

    .reviews-section {
        padding: 60px 15px;
    }

    .review-form-section {
        padding: 18px;
    }

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

    .star-btn::before {
        font-size: 24px;
    }

    .stars-input {
        gap: 6px;
    }

    .review-item {
        padding: 18px;
    }

    .review-name {
        font-size: 15px;
    }

    .review-text {
        font-size: 14px;
    }
}
