/* ==========================================================================
   1. VARIABLES Y CONFIGURACIÓN GLOBAL
   ========================================================================== */
:root {
    --primary-blue: #66B5E3;
    --dark-text: #1A1A1A;
    --cursive-font: 'Kaushan Script', cursive;
    --serif-font: 'Bodoni Moda', serif;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark-text);
    overflow-x: hidden;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   2. SISTEMA DE CAPAS (LÍNEA AZUL CENTRAL)
   ========================================================================== */
.blue-line-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 100%;
    /* Se adapta al contenedor .relative en home.php */
    background-color: var(--primary-blue);
    z-index: 10;
    /* Capa intermedia */
}

/* Secciones que TAPÁN la línea (van por ENCIMA) */
#home,
#development {
    position: relative;
    z-index: 20;
}

/* Secciones que son ATRAVESADAS por la línea (van por DEBAJO) */
#apps,
#testimonials,
#blog {
    position: relative;
    z-index: 5;
}

/* Contenido interno de Apps que debe ir sobre la línea */
#apps .container>div {
    position: relative;
    z-index: 15;
}

/* ==========================================================================
   3. TIPOGRAFÍA Y COMPONENTES COMUNES
   ========================================================================== */
.font-cursive {
    font-family: var(--cursive-font);
}

.font-serif-italic {
    font-family: var(--serif-font);
    font-style: italic;
}

.title-cursive {
    font-family: var(--cursive-font) !important;
    font-size: 150px;
    line-height: 0.8;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.subtitle-serif {
    font-family: var(--serif-font) !important;
    font-style: italic;
    font-size: 45px;
    color: var(--dark-text);
    margin-bottom: 30px;
}

/* Estilo de tarjeta blanca con sombra natural */
.design-card-shadow {
    display: flex;
    flex-direction: column;
    flex: 1;
    background-color: white;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.02), 0 6px 6px rgba(0, 0, 0, 0.02), 0 0 1px rgba(0, 0, 0, 0.1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

/* ==========================================================================
   4. BLOQUE 1: HERO
   ========================================================================== */
.hero {
    padding: 150px 0;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-description {
    max-width: 450px;
    color: #666;
    margin-bottom: 40px;
}

.hero-pagination .dot {
    width: 12px;
    height: 12px;
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
}

.hero-pagination .dot.active {
    background-color: var(--primary-blue);
}

.main-mockup {
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   5. BLOQUE 2: APPS (CORREGIDO)
   ========================================================================== */
#apps .container {
    /* Quitamos el fondo, el padding y la sombra de aquí */
    background-color: transparent;

    border: none;
    box-shadow: none;
    overflow: visible !important;
}

/* Ajuste para que la cinta azul no se mueva de su sitio */
.phone-ribbon-overflow {
    position: absolute;
    top: 80%;
    left: -30px;
    transform: translateY(-50%) rotate(-2deg);
    z-index: 30;
    width: 450px;
    filter: drop-shadow(0 40px 50px rgba(0,0,0,0.25));
    pointer-events: none;
}

/* ==========================================================================
   6. BLOQUE 3: DEVELOPMENT
   ========================================================================== */
.vertical-text-style {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    font-family: var(--cursive-font);
    font-size: 100px;
    line-height: 1;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 20px;
}

.logo-card-style {
    background: white;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 10px;
    transition: all 0.3s ease;
}

.logo-card-style img {
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    opacity: 1;
    display: block;
}

.logo-card-style:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* ==========================================================================
   7. CONFIGURACIÓN DE CARRUSELES (SWIPER)
   ========================================================================== */
.swiper-slide {
    height: auto !important;
    display: flex !important;
}

.hero-swiper {
    padding-bottom: 60px !important;
    padding-top: 20px !important;
}

/* ==========================================================================
   8. RESPONSIVE
   ========================================================================== */
@media (min-width: 768px) {
    .design-card-shadow {
        flex-direction: row;
    }
}