/* Custom CSS for Desarrollo Web Page */

.web-dev-page {
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
}

.web-hero {
    padding: 180px 20px 80px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    text-align: left;
}

.web-hero-content {
    flex: 1;
    max-width: 600px;
}

.web-hero-media {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.web-hero-media video,
.web-hero-media img {
    width: 100%;
    max-width: 550px;
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-label {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(30, 75, 176, 0.1);
    border: 1px solid rgba(30, 75, 176, 0.3);
    color: var(--color-secondary-blue);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.web-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
}

.web-hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.web-hero-actions {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

.btn-solid-blue {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--color-secondary-blue) 0%, var(--color-primary-blue) 100%);
    color: white;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(30, 75, 176, 0.4);
}
.btn-solid-blue:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 75, 176, 0.6);
}

.btn-outline-blue {
    display: inline-block;
    padding: 15px 30px;
    background: transparent;
    color: var(--color-text-main);
    border: 1px solid var(--color-border-glass);
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s, border-color 0.3s;
}
.btn-outline-blue:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
}

/* Ecosystem Grid */
.web-ecosystem {
    padding: 60px 20px;
}
.section-header.center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}
.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.eco-card {
    padding: 30px;
    border-radius: 16px;
    transition: transform 0.3s, border-color 0.3s;
}
.eco-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-secondary-blue);
}
.eco-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.eco-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}
.eco-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Dual Gallery Tabs */
.web-dual-gallery {
    padding: 60px 20px;
}
.tabs-container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--color-border-glass);
    border-radius: 20px;
    overflow: hidden;
}
.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--color-border-glass);
}
.tab-btn {
    flex: 1;
    padding: 20px;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}
.tab-btn.active {
    color: var(--color-secondary-blue);
    background: rgba(30, 75, 176, 0.05);
    border-bottom: 2px solid var(--color-secondary-blue);
}
.tab-btn:hover:not(.active) {
    background: rgba(255,255,255,0.02);
    color: white;
}
.tab-content {
    display: none;
    padding: 40px;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}
.tab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.tab-visual {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}
.gallery-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* Tooltips para Tech Stack */
.tech-stack-visual {
    position: relative;
}
.tech-tooltip {
    position: absolute;
    width: 80px;
    height: 80px;
    cursor: crosshair;
    border-radius: 50%;
    background: rgba(255,255,255,0.0);
}

/* Distribución de tooltips sobre la imagen - requiere calibración */
.tech-tooltip.react { top: 20%; left: 30%; }
.tech-tooltip.node { top: 50%; left: 50%; }
.tech-tooltip.csharp { top: 30%; left: 70%; }
.tech-tooltip.flutter { top: 70%; left: 30%; }

.tech-tooltip:hover::after {
    content: attr(data-tech);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(2, 6, 23, 0.95);
    border: 1px solid var(--color-secondary-blue);
    padding: 10px 15px;
    border-radius: 8px;
    color: white;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    animation: fadeInUp 0.2s;
}

/* DB Grid */
.web-infra {
    padding: 60px 20px;
}
.db-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.db-card {
    padding: 30px;
    text-align: center;
    border-top: 4px solid var(--color-secondary-blue);
}
.db-card h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* ROI Section */
.web-roi {
    padding: 60px 20px;
}
.roi-container {
    padding: 50px;
    max-width: 1000px;
    margin: 0 auto;
}
.roi-header {
    text-align: center;
    margin-bottom: 40px;
}
.roi-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-top: 10px;
}
.roi-quote {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255,255,255,0.02);
    border-left: 4px solid var(--color-action-orange);
    font-style: italic;
    font-size: 1.1rem;
    color: white;
}
.roi-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}
.metric {
    background: rgba(0,0,0,0.2);
    padding: 25px;
    border-radius: 12px;
}
.metric-number {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 10px;
}
.metric-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

/* CTA Final */
.web-cta {
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(to top, rgba(30, 75, 176, 0.1), transparent);
}
.web-cta h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}
.web-cta p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}
.cta-huge {
    font-size: 1.2rem;
    padding: 20px 40px;
}

@media (max-width: 992px) {
    .web-hero { flex-direction: column; text-align: center; padding-top: 140px; }
    .web-hero-content { margin: 0 auto; }
    .web-hero-actions { flex-direction: column; align-items: center; justify-content: center; width: 100%; }
    .web-hero-title { font-size: 2.8rem; }
    .tab-grid { grid-template-columns: 1fr; }
    .db-grid { grid-template-columns: 1fr; }
    .roi-metrics { grid-template-columns: 1fr; }
    .tabs-header { flex-direction: column; }
}

@media (max-width: 768px) {
    .web-hero-title { font-size: 2.5rem; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(0); }
    to { opacity: 1; transform: translateX(-50%) translateY(-10px); }
}

/* Hover effect para los logos del Carrusel */
.client-logo-box img.tech-logo {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Animación elástica suave */
}
.client-logo-box:hover img.tech-logo {
    transform: scale(1.25); /* Crecen un 25% al acercar el mouse */
}

/* Título Animado de Tecnologías */
@keyframes rainbowText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.web-dev-page .marquee-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: none;
    letter-spacing: normal;
    background: linear-gradient(270deg, #EA580C, #3B82F6, #00f2ff, #10B981, #EA580C);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbowText 6s ease infinite;
    text-align: center;
    margin-bottom: 50px;
}


/* FAQ Section */
.web-faq {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-wrapper {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-top: 50px;
}

.faq-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.faq-container {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (max-width: 992px) {
    .faq-wrapper {
        flex-direction: column;
    }
}

.faq-item {
    background: rgba(13, 20, 36, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: rgba(0, 242, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.05);
}

.faq-question {
    width: 100%;
    padding: 25px 30px;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-main);
    font-size: 1.2rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.3s ease;
}

.faq-item:hover .faq-question {
    color: var(--color-secondary-blue);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-secondary-blue);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 30px;
}

.faq-answer p {
    color: #ffffff;
    font-weight: 400;
    line-height: 1.7;
    padding-bottom: 25px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}
