/* ======================================== */
/* NUEVA PROPUESTA VISUAL - DYM DRONES      */
/* ======================================== */

:root {
    --bg-gradient: linear-gradient(135deg, #060d17 0%, #0a192f 50%, #112240 100%);
    --color-accent-new: #00e5ff;
    --card-bg: rgba(17, 34, 64, 0.7);
    --card-border: rgba(0, 229, 255, 0.15);
    --text-primary: #e6f1ff;
    --text-secondary: #8892b0;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
}

/* Base (Mobile-First) */
.mockup-wrapper {
    background: var(--bg-gradient);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    margin-top: -1px; 
}

/* Carousel Container */
.carousel-container {
    position: relative;
    width: 100%;
    min-height: 70vh;
    overflow: hidden;
    background-color: #060d17;
}

/* Individual Slide */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 1.5rem 5rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Slide Gradient Overlay */
.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(6,13,23,0.85), rgba(6,13,23,0.95));
    z-index: -1;
}

/* Content animations inside slide */
.carousel-slide h1, .carousel-slide h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 229, 255, 0.3);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease 0.3s;
}

.carousel-slide p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease 0.5s;
}

/* The button animation */
.carousel-slide .mockup-btn {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease 0.7s;
}

/* Activate animations */
.carousel-slide.active h1,
.carousel-slide.active h2,
.carousel-slide.active p,
.carousel-slide.active .mockup-btn {
    transform: translateY(0);
    opacity: 1;
}

/* Navigation Dots */
.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--color-accent-new);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

/* Static Page Hero (For internal pages) */
.page-hero {
    position: relative;
    padding: 8rem 1.5rem 5rem;
    text-align: center;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(6,13,23,0.7), rgba(6,13,23,0.95));
    z-index: -1;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 229, 255, 0.3);
}

.page-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.mockup-btn {
    display: inline-block;
    background: var(--color-accent-new);
    color: #060d17;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.mockup-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.5);
    background: #4dffff;
    color: #000;
}

/* Content Sections */
.mockup-section {
    padding: var(--spacing-lg) 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.mockup-section h2 {
    font-size: 2rem;
    color: var(--color-accent-new);
    margin-bottom: 1.5rem;
    text-align: center;
}

.mockup-section > p.section-desc {
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
}

/* Grid de Servicios */
.mockup-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Service Card (Glassmorphism effect) */
.mockup-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.mockup-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 229, 255, 0.15) inset;
    border-color: rgba(0, 229, 255, 0.5);
}

.mockup-card h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.mockup-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--color-accent-new);
    border-radius: 2px;
}

.mockup-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* SEO Text Block & Layout */
.mockup-seo-block {
    background: rgba(10, 25, 47, 0.6);
    border-top: 1px solid rgba(0, 229, 255, 0.1);
    padding: var(--spacing-lg) 1.5rem;
}

.seo-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

/* Contenido Principal SEO */
.seo-main h2 {
    font-size: 1.8rem;
    color: var(--color-accent-new);
    margin-top: 0;
    margin-bottom: 1.2rem;
}

.seo-main p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: justify;
}

.seo-main h2:not(:first-child) {
    margin-top: 2.5rem;
}

.seo-main ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.seo-main ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.seo-main ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--color-accent-new);
    font-weight: bold;
}

/* Barra Lateral (Sidebar) */
.seo-sidebar {
    background: rgba(17, 34, 64, 0.5);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.seo-sidebar h3 {
    color: var(--color-accent-new);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    padding-bottom: 0.5rem;
}

/* Modificamos los enlaces para alojar imágenes */
.sidebar-link {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    background: rgba(10, 25, 47, 0.7);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid transparent;
}

.sidebar-link:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.sidebar-link-content {
    padding: 0.8rem 1rem;
}

.sidebar-link strong {
    display: block;
    font-size: 1rem;
    color: var(--color-accent-new);
}

.sidebar-link span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: block;
    margin-top: 0.5rem;
}

.sidebar-link img {
    width: 100%;
    height: 140px; 
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* FAQ Section */
.mockup-faq-block {
    background: transparent;
    padding: 2rem 1.5rem var(--spacing-lg);
}

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

.faq-container h2 {
    font-size: 1.8rem;
    color: var(--color-accent-new);
    margin-bottom: 2rem;
    text-align: center;
}

.faq-item {
    background: rgba(17, 34, 64, 0.5);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item[open] {
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.faq-item summary {
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none; /* Hide default arrow */
    position: relative;
}

/* Custom arrow for summary */
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-accent-new);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

/* Safari fix to hide default arrow */
.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-content {
    padding: 0 1.5rem 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 0.5rem;
    padding-top: 1rem;
}

/* ==============================
   NEW HOMEPAGE COMPONENTS
================================= */

/* Split Content Blocks (Image Left / Text Right & Vice Versa) */
.split-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 4rem;
}

.split-block:last-child {
    margin-bottom: 0;
}

.split-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(0, 229, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.split-content h3 {
    color: var(--color-accent-new);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.split-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    background: linear-gradient(90deg, rgba(10, 25, 47, 0.9), rgba(6, 13, 23, 0.9));
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    padding: 3rem 1.5rem;
    text-align: center;
}

.stat-item h4 {
    font-size: 3rem;
    color: var(--color-accent-new);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-item span {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Testimonials Carousel (Native CSS Scroll Snap) */
.testimonial-wrapper {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    display: flex;
    gap: 1.5rem;
    padding-bottom: 2rem; /* space for scrollbar */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent-new) rgba(255,255,255,0.05);
}

.testimonial-wrapper::-webkit-scrollbar {
    height: 8px;
}
.testimonial-wrapper::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}
.testimonial-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--color-accent-new);
    border-radius: 10px;
}

.testimonial-card {
    min-width: 300px;
    max-width: 350px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    background: rgba(17, 34, 64, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.stars {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--text-secondary);
    font-style: italic;
    flex-grow: 1;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-accent-new);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #060d17;
    font-weight: bold;
    font-size: 1.2rem;
}

.author-info h5 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1rem;
}

.author-info span {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(10, 25, 47, 0.8));
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 16px;
    padding: 4rem 2rem;
    text-align: center;
    margin: 4rem 1.5rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.cta-banner h2 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-banner p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Service Pills */
.service-pill {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-pill:hover {
    background: rgba(0, 229, 255, 0.15);
    border-color: var(--color-accent-new);
    transform: translateY(-2px);
}

/* BREAKPOINT 1: TABLET (>= 768px) */
@media (min-width: 768px) {
    .carousel-slide h1, .carousel-slide h2, .page-hero h1 { font-size: 3.5rem; }
    .carousel-slide p, .page-hero p { font-size: 1.2rem; }
    .mockup-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .mockup-section, .mockup-seo-block { padding: 5rem 3rem; }
    
    .split-block { grid-template-columns: 1fr 1fr; }
    .split-block:nth-child(even) .split-img-wrapper { order: 2; }
    .split-img { height: 400px; }
    
    .stats-bar { grid-template-columns: repeat(3, 1fr); padding: 4rem 3rem; }
    .testimonial-card { min-width: 400px; }
    .cta-banner { padding: 5rem 3rem; margin: 4rem 3rem; }
}

/* BREAKPOINT 2: DESKTOP (>= 1024px) */
@media (min-width: 1024px) {
    .carousel-slide h1, .carousel-slide h2, .page-hero h1 { font-size: 4.5rem; }
    .mockup-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
    .mockup-card { padding: 2.5rem; }
    
    .seo-layout { 
        grid-template-columns: 2.5fr 1fr;
        gap: 4rem;
    }
}
