:root {
    --primary-color: #d1d1d1;
    --text-color: #555;
    --heading-color: #333;
    --bg-light: #f9f9f9;
    --bg-dark: #222;
    --white: #fff;
    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #b0b0b0;
}

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

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--heading-color);
    color: var(--white);
    padding: 8px 16px;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 10px 0;
}

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

.site-logo img {
    display: block;
    max-height: 60px;
    width: auto;
}

#nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 16px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--heading-color);
    cursor: pointer;
    padding: 8px 16px;
    position: relative;
}

#nav-toggle span,
#nav-toggle span::before,
#nav-toggle span::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--heading-color);
    transition: 0.3s;
    position: relative;
}

#nav-toggle span::before,
#nav-toggle span::after {
    content: '';
    position: absolute;
}

#nav-toggle span::before {
    top: -7px;
}

#nav-toggle span::after {
    top: 7px;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
}

.nav-menu li a {
    display: block;
    padding: 10px 18px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    color: var(--heading-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary-color);
}

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

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

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

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 10% 0;
}

.hero-large-text {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--white);
    line-height: 1.4;
    margin-bottom: 20px;
}

.js-rotating {
    display: inline;
}

.rotating-item {
    display: none;
    font-weight: 700;
}

.rotating-item.active {
    display: inline;
}

.hero-small-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-small-text strong {
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 30px;
    border-radius: 3px;
    font-size: 14px;
}

.hero-buttons .btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
}

.hero-buttons .btn-outline-light:hover {
    background: var(--white);
    color: var(--heading-color);
}

.hero-buttons .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--heading-color);
}

.hero-buttons .btn-primary:hover {
    background: #b0b0b0;
    border-color: #b0b0b0;
}

.section-title-area {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.section-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

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

.feature-item {
    text-align: center;
    padding: 30px 20px;
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-media {
    margin-bottom: 20px;
}

.icon-bg {
    color: var(--primary-color);
    opacity: 0.2;
}

.icon-fg {
    color: var(--primary-color);
}

.feature-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.feature-item-content p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-color);
}

.section-about {
    padding: 80px 0;
    background: var(--bg-light);
}

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.about-image {
    flex: 0 0 auto;
    max-width: 373px;
}

.about-image img {
    display: block;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.about-text {
    flex: 1;
    min-width: 280px;
}

.about-text p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 12px;
    padding-left: 15px;
    border-left: 3px solid var(--primary-color);
}

.section-gallery {
    padding: 80px 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.gallery-item {
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s, filter 0.4s;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.8);
}

.section-contact {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-contact .section-title {
    text-transform: uppercase;
}

#contact-form .form-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--heading-color);
}

#contact-form .form-control {
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 10px 14px;
    font-size: 14px;
    transition: border-color 0.3s;
}

#contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(209, 209, 209, 0.25);
}

#contact-form .required {
    color: #d63637;
}

#contact-form .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--heading-color);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 30px;
    border-radius: 3px;
}

#contact-form .btn-primary:hover {
    background: #b0b0b0;
    border-color: #b0b0b0;
}

#form-status {
    font-size: 14px;
}

#form-status.success {
    color: #198754;
}

#form-status.error {
    color: #d63637;
}

.contact-text {
    margin-bottom: 30px;
}

.contact-text p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.contact-info {
    background: var(--white);
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.contact-info h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
}

.contact-details li i {
    color: var(--primary-color);
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.contact-details li a {
    color: var(--text-color);
}

.contact-details li a:hover {
    color: var(--primary-color);
}

.site-footer {
    background: var(--bg-dark);
    color: #aaa;
}

.footer-widgets {
    padding: 50px 0;
}

.footer-widgets h5 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.newsletter-form .input-group {
    max-width: 400px;
}

.newsletter-form .form-control {
    background: #333;
    border: 1px solid #444;
    color: var(--white);
    border-radius: 3px 0 0 3px;
    padding: 10px 14px;
    font-size: 14px;
}

.newsletter-form .form-control::placeholder {
    color: #888;
}

.newsletter-form .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--heading-color);
    font-weight: 600;
    border-radius: 0 3px 3px 0;
    font-size: 14px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
    color: var(--white);
    font-size: 20px;
    transition: background 0.3s, color 0.3s;
}

.footer-social a:hover {
    background: var(--primary-color);
    color: var(--heading-color);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom .copyright {
    font-size: 13px;
    color: #888;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: var(--heading-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #b0b0b0;
    color: var(--heading-color);
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 3px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 36px;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
}

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

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 15px 18px;
    border-radius: 3px;
    transition: background 0.3s;
    z-index: 10000;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.25);
}

@media (max-width: 991px) {
    .hero-large-text {
        font-size: 1.8rem;
    }

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

@media (max-width: 767px) {
    #nav-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .main-navigation.open {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
    }

    .nav-menu li a {
        padding: 12px 20px;
        border-bottom: 1px solid #eee;
    }

    .hero-large-text {
        font-size: 1.4rem;
    }

    .hero-small-text {
        font-size: 0.95rem;
    }

    .section-servicios,
    .section-about,
    .section-gallery,
    .section-contact {
        padding: 50px 0;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .about-image {
        max-width: 100%;
    }

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

    .gallery-item img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .hero-large-text {
        font-size: 1.2rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}
