﻿:root {
    --bg-color: radial-gradient(84.6% 67.10000000000001% at 50% 100%, #0a0a0a 0%, #000000 100%);
    --card-bg: #141414;
    --card-bg-rgb: 20, 20, 20;
    --card-hover: #181818;
    --card-border: #1f1f1f;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --button-primary: #8b5cf6;
    --button-primary-hover: #7c3aed;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg-color);
    min-height: 100vh;
    padding-top: 7rem;
    overflow-x: hidden;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 7rem 2rem;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    z-index: 1;
}

.hero-text {
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    color: var(--text-primary);
    text-transform: none;
    margin-bottom: 0.25rem;
}

.hero-description {
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.hero-content.two-col {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    align-items: center;
    text-align: left;
}

.hero-content.two-col .hero-text {
    margin-bottom: 0;
}

.hero-content.two-col .hero-description {
    margin-left: 0;
    margin-right: 0;
}

.hero-content.two-col .hero-cta {
    justify-content: flex-start;
}

.hero-media {
    width: 130%;
    height: 100%;
    max-height: 780px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: none;
    background: transparent;
    justify-self: end;
    margin-left: auto;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    display: block;
    filter: brightness(0.95);
    transition: transform 0.5s ease, filter 0.4s ease;
}

@media (min-width: 1024px) {
    .hero {
        padding-right: 0;
        padding-left: 4rem;
    }
}

.hero-media:hover img {
    transform: scale(1.03);
    filter: brightness(1);
}
.button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.button.primary {
    background: linear-gradient(90deg, #60A5FA 0%, #3B82F6 100%);
    color: #ffffff;
    border: none;
}

.button.primary:hover {
    background: linear-gradient(90deg, #4f94f9 0%, #2563EB 100%);
    transform: translateY(-1px);
}

.button.secondary {
    background: #ffffff;
    color: #000000;
    border: none;
}

.button.secondary:hover {
    background: #f1f1f1;
    transform: translateY(-1px);
}

/* Removed dashboard image and wrapper */

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 5.4rem 1rem 3rem;
    }

    .hero-content.two-col {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        justify-content: center;
    }

    .button {
        width: 100%;
        justify-content: center;
    }

    .hero-media {
        width: 100%;
        max-width: 100%;
        max-height: none;
        border-radius: 10px;
        overflow: hidden;
    }

    .hero-media img {
        aspect-ratio: 16 / 10;
        object-fit: cover;
        object-position: center;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        padding: 0.5rem 0;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .section-title {
        margin-bottom: 2.4rem;
    }

    .section-title h2 {
        font-size: clamp(1.7rem, 7vw, 2.2rem);
    }

    .section-title p {
        font-size: 0.98rem;
    }

    .portfolio-showcase {
        padding: 4.2rem 0 2.8rem;
    }

    .shot {
        width: min(84vw, 340px);
    }

    .cta-text h2 {
        white-space: normal;
    }
}

.container {
    width: min(100%, 1230px);
    max-width: 1230px;
    margin: 0 auto;
    padding: 0 1rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    padding: 1rem;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
}

@media (max-width: 1024px) {
    .hero-content.two-col {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content.two-col .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-content.two-col .hero-cta {
        justify-content: center;
    }

    .hero-media {
        width: 100%;
        max-width: 760px;
        max-height: 460px;
        justify-self: center;
    }

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

.menu-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--card-border), 
        transparent);
}

.icon {
    width: 44px;
    height: 44px;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--card-hover);
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.icon svg {
    width: 22px;
    height: 22px;
}

/* Force servicios icons (in index) to a consistent blue */
.menu-grid .icon svg * {
    stroke: #3B82F6 !important;
}

h3 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
}

p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.07);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.14);
}

.services-cta {
    text-align: center;
    margin-top: 1.5rem;
    padding-bottom: 1.5rem;
}


.faq {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
}

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

.faq h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    background: var(--bg-hover);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: inherit;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 1.5rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 640px) {
    .faq {
        padding: 4rem 1rem;
    }

    .faq h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .faq-question {
        padding: 1.25rem;
        font-size: 1rem;
    }
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0.25rem auto 0;
}
 
/* Texto con degradado azul (bg-gradient-to-r from-blue-400 to-blue-500 bg-clip-text text-transparent) */
.gradient-text {
    background: linear-gradient(90deg, #60A5FA 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Animated word slide from top for the hero - Professional animation */
.animated-roles {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    opacity: 1;
    will-change: transform, opacity;
}
.animated-roles.is-hidden {
    transform: translateY(-20px);
    opacity: 0;
}
.animated-roles.is-coming {
    transform: translateY(20px);
    opacity: 0;
}

/* Removed portfolio section and modal styles */

/* Removed features-comparison section and table styles */

.faq-item:nth-child(1) .faq-question:hover,
.faq-item:nth-child(1) .faq-question[aria-expanded="true"],
.faq-item:nth-child(2) .faq-question:hover,
.faq-item:nth-child(2) .faq-question[aria-expanded="true"],
.faq-item:nth-child(3) .faq-question:hover,
.faq-item:nth-child(3) .faq-question[aria-expanded="true"],
.faq-item:nth-child(4) .faq-question:hover,
.faq-item:nth-child(4) .faq-question[aria-expanded="true"],
.faq-question:hover {
    color: #3B82F6;
}

/* Forzar color azul en los iconos del FAQ */
.faq-icon path,
.faq-icon line,
.faq-icon circle {
    stroke: #3B82F6 !important;
}

/* Removed trusted companies carousel and animations */

/* ===========================
   Portfolio showcase scrolling
   =========================== */
.portfolio-showcase {
    padding: 7rem 0 4rem;
    position: relative;
}

.portfolio-rows {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
}

.scroll-viewport {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0));
    mask-image: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0));
}

.scroll-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: max-content;
}

.scroll-left {
    animation: scroll-left 100s linear infinite;
}

.scroll-right {
    animation: scroll-right 100s linear infinite;
}

.shot {
    width: 420px;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0,0,0,0.45);
    background: rgba(255,255,255,0.02);
}

.shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.85);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.shot:hover img {
    transform: scale(1.03);
    filter: brightness(1);
}

.portfolio-cta {
    display: flex;
    justify-content: center;
    margin-top: 1.75rem;
}

.portfolio-showcase-title {
    margin-bottom: 3rem;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

@media (max-width: 640px) {
    .shot { width: 280px; }
}

@media (max-width: 480px) {
    body {
        padding-top: 6.4rem;
    }

    .hero h1 {
        font-size: clamp(1.9rem, 10vw, 2.6rem);
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .menu-item {
        min-height: 0;
    }

    .shot {
        width: min(88vw, 300px);
    }
}

/* ===========================
   CTA Section
   =========================== */
.cta-section {
    padding: 4.5rem 2rem;
    position: relative;
    overflow: hidden;
    margin-top: 3.5rem;
    margin-bottom: 3.5rem;
}

.cta-content {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
    gap: 3.5rem;
    align-items: center;
    text-align: center;
    max-width: 1240px;
    margin: 0 auto;
}

.cta-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.cta-text h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.015em;
    white-space: nowrap;
}

.cta-text p {
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    color: var(--text-secondary);
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.cta-buttons .button {
    padding: 0.85rem 2.4rem;
    border-radius: 10px;
    font-weight: 600;
}

.cta-buttons .button.primary {
    background: linear-gradient(90deg, #60A5FA 0%, #3B82F6 100%);
    color: #ffffff;
    box-shadow: none;
}

.cta-buttons .button.primary:hover {
    transform: translateY(-2px);
}

.cta-buttons .button.secondary {
    background: #ffffff;
    color: #111827;
    border: none;
    box-shadow: none;
}

.cta-buttons .button.secondary:hover {
    transform: translateY(-2px);
    background: #f1f1f1;
}

.cta-image {
    width: clamp(180px, 22vw, 260px);
    height: clamp(180px, 22vw, 260px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.96;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translate(var(--offset-x, 0px), var(--offset-y, 0px));
}

.cta-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0.98);
}

.cta-image:hover {
    transform: translate(var(--offset-x, 0px), var(--offset-y, 0px)) scale(1.05);
    opacity: 1;
}

.cta-image-left {
    justify-self: end;
    --offset-x: -40px;
    --offset-y: -35px;
}

.cta-image-right {
    justify-self: start;
    --offset-x: 40px;
    --offset-y: 35px;
}

@media (max-width: 1024px) {
    .cta-content {
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .cta-section {
        padding: 3.5rem 1.25rem;
        margin-top: 3rem;
        margin-bottom: 3rem;
    }

    .cta-content {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .cta-image,
    .cta-image-left,
    .cta-image-right {
        justify-self: center;
        --offset-x: 0px;
        --offset-y: 0px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .button {
        width: 100%;
        justify-content: center;
    }
}

/* ===========================
   Por quÃ© nosotros section spacing
   =========================== */
.porque-nosotros-container {
    margin-top: 7rem;
    margin-bottom: 2rem;
}

/* ===========================
   Menu grid (Por quÃ© nosotros layout)
   =========================== */
.menu-grid.porque-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas: "porque1 porque2 porque3";
    gap: 1rem;
    padding: 1rem;
    -webkit-mask-image: none;
    mask-image: none;
    display: grid;
}

/* Menu items with images */
.menu-item-with-image {
    padding: 1.25rem;
    min-height: auto;
    flex-direction: column;
    overflow: hidden;
    gap: 1rem;
    height: 100%;
    display: flex;
}

/* Hide the top border line for items with images */
.menu-item-with-image::before {
    display: none;
}

.menu-item-image {
    width: 100%;
    height: clamp(180px, 20vw, 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    border-radius: 10px;
    border: none;
    background: transparent;
    padding: 0.5rem;
}

.menu-item-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.92);
}

/* Remove icon from menu items with images */
.menu-item-with-image .icon {
    display: none;
}

.menu-item-with-image h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
}

.menu-item-with-image .porque-descripcion {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.menu-item-with-image p:not(.porque-descripcion) {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.porque-item-1 { grid-area: porque1; }
.porque-item-2 { grid-area: porque2; }
.porque-item-3 { grid-area: porque3; }

@media (max-width: 1024px) {
    .menu-grid.porque-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-areas: "porque1 porque2 porque3";
    }
}

@media (max-width: 768px) {
    .menu-grid.porque-grid {
        grid-template-columns: 1fr;
        grid-template-areas: unset;
    }

    .menu-item-image {
        height: 200px;
    }
}

/* Global responsive overrides (placed at the end to win cascade order) */
@media (max-width: 1024px) {
    .hero-content.two-col {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content.two-col .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-content.two-col .hero-cta {
        justify-content: center;
    }

    .hero-media {
        width: 100%;
        max-width: 760px;
        max-height: 460px;
        justify-self: center;
    }

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

@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr;
        padding: 0.5rem 0;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .section-title {
        margin-bottom: 2.4rem;
    }

    .section-title h2 {
        font-size: clamp(1.7rem, 7vw, 2.2rem);
    }

    .section-title p {
        font-size: 0.98rem;
    }

    .portfolio-showcase {
        padding: 4.2rem 0 2.8rem;
    }

    .shot {
        width: min(84vw, 340px);
    }

    .cta-text h2 {
        white-space: normal;
    }

    .hero-media {
        order: -1;
        margin-bottom: 0.75rem;
    }

    .porque-nosotros-container {
        margin-top: 4.5rem;
        margin-bottom: 2.5rem;
    }

    .menu-grid.porque-grid {
        grid-template-columns: 1fr;
        grid-template-areas: none;
        gap: 1.25rem;
        padding: 0.5rem 0;
    }

    .porque-item-1,
    .porque-item-2,
    .porque-item-3 {
        grid-area: auto;
    }

    .menu-item-with-image {
        height: auto;
        min-height: 0;
    }

    .menu-item-image {
        height: clamp(170px, 48vw, 220px);
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 6.4rem;
    }

    .hero h1 {
        font-size: clamp(1.9rem, 10vw, 2.6rem);
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .menu-item {
        min-height: 0;
    }

    .shot {
        width: min(88vw, 300px);
    }
}
