/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* COLORES */
:root {
    --verde: #08e15c;
    --amarillo: #f4d35e;
    --azul: #1b2a49;
    --blanco: #ffffff;
    --gris: #f5f5f5;
}

/* GENERAL */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--blanco);
    color: #333;
    line-height: 1.6;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: linear-gradient(135deg, #2f4f3f 0%, var(--verde) 30%, #5cb85c 60%, var(--amarillo) 100%);
    box-shadow: 0 8px 32px rgba(244, 211, 94, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 3px solid rgba(244, 211, 94, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 40px;
    background: rgba(47, 79, 63, 0.95);
    box-shadow: 0 5px 20px rgba(244, 211, 94, 0.4);
}

/* HAMBURGER MENU */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--blanco);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(244,211,94,0.05) 50%, transparent 100%);
    animation: subtleShimmer 4s infinite;
}

@keyframes subtleShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.logo {
    background: linear-gradient(135deg, var(--blanco), var(--amarillo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.nav-links a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 24px 8px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--amarillo), #ffed4a);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--amarillo);
}

.nav-links a:hover::after {
    width: 80%;
}

/* HERO */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('https://images.unsplash.com/photo-1503387762-592deb58ef4e');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero.carousel-section .hero-content {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    text-align: center;
    color: var(--blanco);
    background: rgba(0,0,0,0.3);
    padding: 25px 35px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 80%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.hero.carousel-section .hero-content h2 {
    font-weight: 800;
    background: linear-gradient(135deg, var(--blanco), var(--amarillo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(244, 211, 94, 0.3);
    animation: heroGlow 2s ease-in-out infinite alternate;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.hero.carousel-section .hero-content p {
    max-width: 600px;
    margin: 0 auto 30px;
    font-weight: 300;
    opacity: 0.95;
    line-height: 1.7;
    font-size: clamp(1rem, 3vw, 1.3rem);
}

@keyframes heroGlow {
    from { filter: drop-shadow(0 0 10px rgba(244, 211, 94, 0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(244, 211, 94, 0.8)); }
}

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: var(--amarillo);
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

.btn:hover {
    background-color: #e6c44d;
}

/* SECCIONES */
.section {
    padding: 60px 30px;
    text-align: center;
}

.section.alt {
    background-color: var(--gris);
}

.section-title {
    margin-bottom: 30px;
    font-size: 30px;
    color: var(--azul);
}

/* SERVICIOS */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--blanco);
    padding: 30px;
    border-radius: 12px;
    border: 2px solid var(--verde);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: auto;
    min-height: 280px;
    overflow: visible;
}

.service-card .content {
    flex: 1;
    overflow: visible;
}

.service-card .content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.3;
    text-align: center;
}

.service-card .content p {
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.service-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.service-card .content {
    flex: 1;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--amarillo);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .service-card {
        flex-direction: column;
        text-align: center;
        height: auto;
    }
    
    .service-card img {
        width: 80px;
        height: 80px;
    }
}

/* NOSOTROS */
.about-text {
    max-width: 700px;
    margin: auto;
}

/* CONTACTO */
.contact-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.socials {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.socials a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    background: var(--blanco);
    border: 2px solid #333;
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    font-size: clamp(14px, 4vw, 16px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.socials a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.socials a:hover::before {
    left: 100%;
}

.socials a:hover {
    border-color: var(--verde);
    background: linear-gradient(135deg, var(--verde), var(--amarillo));
    color: var(--blanco);
    box-shadow: 0 8px 25px rgba(8, 225, 92, 0.4);
    transform: translateY(-3px);
}

/* FOOTER */
footer {
    background-color: var(--verde);
    color: var(--blanco);
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

footer p {
    margin-bottom: 15px;
    font-size: clamp(14px, 3vw, 16px);
}

/* CARRUSEL */
.hero.carousel-section {
    height: 90vh;
    max-height: none;
    min-height: none;
    padding: 0;
    background: none;
    overflow: visible;
}

.hero.carousel-section .carousel-container {
    height: 100vh;
    max-height: none;
}

.carousel-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
    height: auto;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.carousel-btn:hover {
    background: var(--amarillo);
    transform: translateY(-50%) scale(1.1);
    color: #000;
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

@media (max-width: 768px) {
    .carousel-btn {
        font-size: 20px;
        width: 45px;
        height: 45px;
    }
    
    .prev {
        left: 10px;
    }
    
    .next {
        right: 10px;
    }
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot.active,
.dot:hover {
    background: var(--amarillo);
    transform: scale(1.2);
    border-color: var(--blanco);
}

/* VIDEO CARRUSEL */
.video-section .carousel-slides video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.video-section .slide {
    background: #000;
}

@media (max-width: 768px) {
    .carousel-section {
        height: 50vh;
        min-height: 300px;
    }
}

/* GALERÍA DE TRABAJO */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.before-after-pair {
    display: flex;
    gap: 20px;
    background: var(--blanco);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.before-after-pair:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.before, .after {
    flex: 1;
    padding: 20px;
    text-align: center;
}

.before {
    border-right: 3px solid var(--verde);
    background-color: #f8f9fa;
}

.after {
    background-color: var(--gris);
}

.before h3, .after h3 {
    color: var(--azul);
    margin-bottom: 15px;
    font-size: 20px;
}

.before img, .after img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    border: 2px solid var(--verde);
}

/* TESTIMONIOS */
.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--blanco);
    padding: 30px 25px;
    border-radius: 10px;
    border: 2px solid var(--verde);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 60px;
    color: var(--amarillo);
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: serif;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.5;
    margin-left: 20px;
}

.testimonial-card h4 {
    color: var(--azul);
    font-size: 16px;
    text-align: right;
    margin-left: 20px;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: var(--amarillo);
}

/* RESPONSIVE GENERAL */
@media (max-width: 1200px) {
    .services-container {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(47, 79, 63, 0.98);
        flex-direction: column;
        padding: 20px 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        gap: 0;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        padding: 15px 40px;
        font-size: 18px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
    }

    .navbar {
        padding: 15px 20px;
    }

    .navbar.scrolled {
        padding: 12px 20px;
    }

    .logo {
        font-size: clamp(1.5rem, 8vw, 28px);
    }

    .hero {
        height: clamp(60vh, 80vw, 70vh);
    }

    .section {
        padding: clamp(30px, 8vw, 40px) 15px;
    }

    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .carousel-section {
        height: clamp(40vh, 60vw, 50vh);
        min-height: 250px;
    }

    .carousel-container {
        width: 95%;
        border-radius: 10px;
    }

    .carousel-btn {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .carousel-dots {
        bottom: 10px;
        gap: 8px;
    }

    .dot {
        width: 12px;
        height: 12px;
    }

    .services-container, .testimonials-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .service-card {
        min-height: 250px;
        padding: 20px;
    }

    .service-card img {
        width: 70px;
        height: 70px;
    }

    .gallery-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .before-after-pair {
        flex-direction: column;
    }

    .before {
        border-right: none;
        border-bottom: 2px solid var(--verde);
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 12px 15px;
    }

    .section {
        padding: 25px 10px;
    }

    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .prev {
        left: 5px;
    }

    .next {
        right: 5px;
    }

    .btn {
        padding: 12px 24px;
        font-size: clamp(14px, 4vw, 16px);
    }

    .service-card {
        padding: 15px;
        min-height: 220px;
    }

    .testimonial-card {
        padding: 20px 15px;
        font-size: 0.9rem;
    }

    .testimonial-card::before {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0 20px;
    }

    .hero h2 {
        font-size: 28px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 16px;
    }

    .service-card {
        padding: 20px;
    }
    
    .service-card img {
        width: 70px;
        height: 70px;
    }
}
