/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta de colores basada en el logo */
    --color-bg: #1E1E1E;
    --color-text-primary: #E5E5E5;
    --color-accent: #C9242A;
    --color-text-secondary: #BEBEBE;
    --color-shadow: #0D0D0D;
    --color-light: #ffffff;
    
    /* Tipografía */
    --font-primary: 'Rajdhani', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

img, svg, iframe, video {
    max-width: 100%;
    height: auto;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 30, 30, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 36, 42, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(30, 30, 30, 1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-light);
    font-family: var(--font-primary);
    letter-spacing: 2px;
}

@media (min-width: 769px) {
    .logo {
        gap: 1rem;
        font-size: 1.8rem;
        letter-spacing: 3px;
    }
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

@media (min-width: 769px) {
    .logo-img {
        height: 70px;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: 500;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--color-accent);
}

.btn-nav {
    background: var(--color-accent);
    color: var(--color-light) !important;
    padding: 0.7rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-nav::after {
    display: none;
}

.btn-nav:hover {
    background: #a01e23;
    box-shadow: 0 0 20px rgba(201, 36, 42, 0.6);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-accent);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--color-bg);
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1E1E1E 0%, #0D0D0D 100%);
    background-size: cover;
    background-position: center;
    z-index: 0;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.9) 0%, rgba(13, 13, 13, 0.8) 100%);
}

.hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 80px;
}

.logo-hero-img {
    width: 180px;
    height: auto;
    margin: 0 auto 2rem;
    display: block;
    filter: drop-shadow(0 10px 40px rgba(201, 36, 42, 0.6));
}

.hero-slogan {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--color-light);
    margin-bottom: 3rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.btn-hero {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-light);
    padding: 1.2rem 3rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-primary);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(201, 36, 42, 0.4);
}

.btn-hero:hover {
    background: #a01e23;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(229, 229, 229, 0.3);
}

/* ===== ABOUT SECTION (Quiénes Somos) ===== */
.about {
    padding: 8rem 0;
    background: var(--color-bg);
    position: relative;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.red-line-deco {
    position: absolute;
    background: var(--color-accent);
    z-index: 2;
}

.red-line-deco.top-left {
    width: 80px;
    height: 3px;
    top: -15px;
    left: 0;
}

.red-line-deco.top-right {
    width: 80px;
    height: 3px;
    top: -15px;
    left: 0;
}

.about-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.about-content h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--color-light);
    margin-bottom: 1.5rem;
    position: relative;
}

.about-content .lead {
    font-size: 1.3rem;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-content p {
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.value-item {
    text-align: center;
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-item h3 {
    font-size: 1.2rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.value-item p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin: 0;
}

/* ===== WORKS SECTION (Nuestros Trabajos) ===== */
.works {
    padding: 8rem 0;
    background: #0D0D0D;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--color-light);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}

.works-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--color-text-secondary);
    color: var(--color-text-secondary);
    padding: 0.8rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-light);
    box-shadow: 0 0 15px rgba(201, 36, 42, 0.5);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.work-card {
    position: relative;
    height: 350px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(201, 36, 42, 0.4);
}

.work-image-real {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.work-card:hover .work-image-real {
    transform: scale(1.1);
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(13, 13, 13, 1) 0%, rgba(13, 13, 13, 0.8) 60%, transparent 100%);
    padding: 2rem;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s ease;
}

.work-card:hover .work-overlay {
    transform: translateY(0);
    opacity: 1;
}

.work-overlay h3 {
    font-size: 1.5rem;
    color: var(--color-light);
    margin-bottom: 0.5rem;
}

.work-year {
    color: var(--color-accent);
    font-weight: 700;
    font-family: var(--font-primary);
    margin-bottom: 0.5rem;
}

.work-desc {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    padding: 8rem 0;
    background: var(--color-bg);
}

.testimonials-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 60px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-accent);
    border: none;
    color: var(--color-light);
    width: 50px;
    height: 50px;
    border-radius: 4px;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: #a01e23;
    box-shadow: 0 0 20px rgba(201, 36, 42, 0.6);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.testimonials-track {
    overflow: hidden;
    position: relative;
}

.testimonial-card {
    background: #2a2a2a;
    padding: 3rem;
    border-radius: 4px;
    border-left: 4px solid var(--color-accent);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    min-height: 300px;
    display: none;
}

.testimonial-card:first-child {
    display: block;
}

.stars {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 1.2rem;
    color: var(--color-text-primary);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author h4 {
    color: var(--color-light);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.testimonial-author p {
    color: var(--color-accent);
    font-family: var(--font-primary);
    font-weight: 600;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: var(--color-accent);
    width: 40px;
    border-radius: 6px;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 8rem 0;
    background: #0D0D0D;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.contact-icons {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-icon-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.contact-icon-item h3 {
    font-size: 1.2rem;
    color: var(--color-light);
    margin-bottom: 0.3rem;
}

.contact-icon-item p {
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.4;
}

.map-container {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 4px;
    filter: grayscale(100%);
    overflow: hidden;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.contact-form-wrapper {
    background: #2a2a2a;
    padding: 3rem;
    border-radius: 4px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

.contact-form h3 {
    font-size: 2rem;
    color: var(--color-light);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--color-bg);
    border: 2px solid #3a3a3a;
    border-radius: 4px;
    color: var(--color-text-primary);
    font-family: var(--font-secondary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 10px rgba(201, 36, 42, 0.3);
}

.btn-submit {
    width: 100%;
    padding: 1.2rem;
    background: var(--color-accent);
    border: none;
    border-radius: 4px;
    color: var(--color-light);
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #a01e23;
    box-shadow: 0 5px 20px rgba(229, 229, 229, 0.3);
    transform: translateY(-2px);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-shadow);
    color: var(--color-text-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(201, 36, 42, 0.3);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.footer-brand {
    display: block;
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.footer-section h4 {
    color: var(--color-light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.7rem;
    color: var(--color-text-secondary);
}

.footer-section ul li a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .about-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-values {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 45px;
    }

    .logo {
        font-size: 1rem;
        gap: 0.6rem;
        letter-spacing: 1.5px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: var(--color-bg);
        width: 100%;
        padding: 2rem;
        border-top: 1px solid rgba(201, 36, 42, 0.3);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
        transition: right 0.3s ease;
        gap: 1.5rem;
        font-size: 0.95rem;
    }

    .nav-menu.active {
        right: 0;
    }

    .btn-nav {
        padding: 0.6rem 1.3rem;
        font-size: 0.85rem;
    }

    .hero-slogan {
        font-size: 2rem;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .work-card {
        height: 250px;
    }

    .works-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .testimonials-carousel {
        padding: 0 20px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .testimonial-card {
        padding: 2rem;
        min-height: auto;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    section {
        padding: 4rem 0;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
}
