:root {
    --primary-orange: #FF8C00;
    --dark-bg: #1A1A1A;
    --light-gray: #F8F9FA;
    --text-dark: #222222;
    --text-light: #555555;
    --white: #FFFFFF;
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ====================== TIPOGRAFÍA ====================== */
h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(1.5rem, 5vw, 2rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 2rem);
    color: var(--dark-bg);
}

/* ====================== HEADER ====================== */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 65px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    align-items: center;
}

.nav-links a {
    color: var(--dark-bg);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -6px;
    left: 0;
    background: var(--primary-orange);
    transition: width 0.4s ease;
}

.nav-links a:hover {
    color: var(--primary-orange);
}

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

.cta-nav {
    background: var(--primary-orange);
    color: white !important;
    padding: 0.7rem 1.6rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-nav:hover {
    background: #e67e00;
    transform: translateY(-3px);
}

/* Hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--dark-bg);
    transition: all 0.3s ease;
}

/* ====================== HERO ====================== */
.hero {
    height: 100vh;
    min-height: 650px;
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.55)), url('/img/Hero-img.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 80px;
    color: white;
}

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

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    z-index: 2;
    text-align: center;
}

.hero h1 {
    color: white;
    margin-bottom: 1.2rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.subtitle {
    font-size: 1.35rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.95;
}

.cta-group {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 1.1rem 2.4rem;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.primary:hover {
    background: #e67e00;
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(255, 140, 0, 0.35);
}

.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.secondary:hover {
    background: white;
    color: var(--dark-bg);
    transform: translateY(-6px);
}

.trust-badges {
    margin-top: 3rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 1.05rem;
}

.trust-badges span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ====================== SECCIONES GENERALES ====================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 100px 0;
}

.services, .projects, .testimonials, .why-us {
    background: var(--light-gray);
}

h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.subtitle {
    text-align: center;
    color: white;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 4rem;
}

/* ====================== SERVICIOS ====================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
}

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

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.service-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--dark-bg);
    font-size: 1.45rem;
}

.service-card p {
    padding: 0 1.5rem 1.8rem;
    color: var(--text-light);
}

.ver-mas {
    display: block;
    margin: 3rem auto 0;
    padding: 1rem 2.5rem;
    background: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ver-mas:hover {
    background: #e67e00;
    transform: translateY(-4px);
}

/* ====================== POR QUÉ ELEGIRNOS ====================== */
.why-us {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    background: var(--light-gray);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
    background: white;
    box-shadow: 0 15px 40px rgba(0,0,0,0.07);
}

.feature i {
    font-size: 3.2rem;
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
}

/* ====================== ÚLTIMAS REFORMAS ====================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: translateY(-12px);
}

.before-after {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.before-after img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.6s ease;
}

.before-after .after {
    opacity: 0;
}

.project-card:hover .after {
    opacity: 1;
}

.project-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.4rem;
}

.project-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
}

.view-project {
    margin: 0 1.5rem 1.5rem;
    padding: 0.8rem 1.8rem;
    background: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    width: calc(100% - 3rem);
}

/* Filtros */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-buttons button {
    padding: 0.8rem 1.8rem;
    border: 2px solid var(--primary-orange);
    background: transparent;
    color: var(--dark-bg);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-buttons button.active,
.filter-buttons button:hover {
    background: var(--primary-orange);
    color: white;
}

/* ====================== TESTIMONIOS ====================== */
.testimonials-carousel {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonials-container {
    width: 100%;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.6s ease;
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 20px;
}

.testimonial-content {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    text-align: center;
}

.testimonial-image {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--primary-orange);
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rating {
    color: #FF8C00;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

blockquote {
    font-style: italic;
    color: var(--text-light);
    margin: 1.5rem 0;
    line-height: 1.7;
}

.testimonial-author h4 {
    color: var(--dark-bg);
    margin-bottom: 0.3rem;
}

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

.nav-button {
    background: var(--primary-orange);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.nav-button:hover {
    background: #e67e00;
    transform: scale(1.1);
}

.dots-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* ====================== CONTACTO ====================== */
.contact {
    background: var(--dark-bg);
    color: white;
    text-align: center;
}

.contact .cta-button.large {
    font-size: 1.3rem;
    padding: 1.4rem 3rem;
    margin: 1.5rem 0;
}

/* ====================== FOOTER ====================== */
footer {
    background: var(--dark-bg);
    color: white;
    text-align: center;
    padding: 3rem 0;
    font-size: 1.05rem;
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 992px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        gap: 1.5rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .cta-group {
        flex-direction: column;
        align-items: center;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .services-grid,
    .features-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-badges {
        gap: 1rem;
        font-size: 1rem;
    }
}