/* ================= VARIABLES Y ESTETICA ================= */
:root {
    --bg-dark: #0a0a0f;
    --bg-card: rgba(25, 25, 35, 0.7);
    --text-main: #f0f0f5;
    --text-muted: #a0a0b5;
    
    /* Alarma-SOS Colors (Adventure/Alert) */
    --color-alarma: #ff3b30;
    --color-alarma-glow: rgba(255, 59, 48, 0.3);
    
    /* Ayuda2Me Colors (Urban/Security) */
    --color-ayuda: #00f2fe;
    --color-ayuda-glow: rgba(0, 242, 254, 0.3);
    
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ================= UTILS ================= */
.text-center { text-align: center; }
.mt-4 { margin-top: 4rem; }

/* ================= HERO SECTION ================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: radial-gradient(circle at top, rgba(30,30,45,1) 0%, var(--bg-dark) 80%);
    overflow: hidden;
}

/* Subtle animated background elements */
.hero-section::before {
    content: '';
    position: absolute;
    top: -20%; left: -10%;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, var(--color-ayuda-glow) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    animation: float 10s infinite alternate;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%; right: -10%;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, var(--color-alarma-glow) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    animation: float 12s infinite alternate-reverse;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(50px) scale(1.1); }
}

/* Navbar */
.navbar {
    padding: 2rem 5%;
    position: relative;
    z-index: 10;
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}
.main-logo {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
}
.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #fff, #a0a0b5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Content */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    z-index: 10;
}
.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.hero-title .highlight {
    background: linear-gradient(90deg, var(--color-ayuda), var(--color-alarma));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    text-decoration: none;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}
.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.btn-primary {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: #fff;
}
.btn-primary:hover {
    transform: translateY(-3px);
}
.btn-alarma:hover {
    border-color: var(--color-alarma);
    box-shadow: 0 10px 20px var(--color-alarma-glow);
}
.btn-ayuda:hover {
    border-color: var(--color-ayuda);
    box-shadow: 0 10px 20px var(--color-ayuda-glow);
}

.btn-action {
    font-size: 1.1rem;
    padding: 1.2rem 3rem;
    letter-spacing: 1px;
}
.btn-alarma-solid {
    background: var(--color-alarma);
    color: white;
    box-shadow: 0 10px 30px var(--color-alarma-glow);
}
.btn-alarma-solid:hover {
    background: #d32f2f;
    transform: scale(1.05);
}
.btn-ayuda-solid {
    background: var(--color-ayuda);
    color: #000;
    box-shadow: 0 10px 30px var(--color-ayuda-glow);
}
.btn-ayuda-solid:hover {
    background: #00c6d4;
    transform: scale(1.05);
}


/* ================= SECTIONS ================= */
.app-section {
    padding: 8rem 5%;
    position: relative;
}
.section-alarma {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #1a1010 100%);
}
.section-ayuda {
    background: linear-gradient(180deg, #1a1010 0%, #0a151f 100%);
}

.section-header {
    margin-bottom: 5rem;
}
.app-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.text-alarma { color: var(--color-alarma); }
.text-ayuda { color: var(--color-ayuda); }

.app-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* ================= GRID & CARDS ================= */
.grid-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.grid-ayuda {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.card-alarma:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--color-alarma-glow);
    border-color: rgba(255, 59, 48, 0.5);
}
.card-ayuda:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--color-ayuda-glow);
    border-color: rgba(0, 242, 254, 0.5);
}

.card-img-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
}
.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-info {
    padding: 2rem;
    flex: 1;
}
.card-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}
.card-info p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Special wide card for family */
@media (min-width: 900px) {
    .card-wide {
        grid-column: span 2;
        flex-direction: row;
    }
    .card-wide .card-img-wrapper {
        width: 50%;
        height: auto;
    }
    .card-wide .card-info {
        width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* ================= FOOTER ================= */
.footer {
    background: #000;
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}
.footer-logo {
    justify-content: center;
    margin-bottom: 1rem;
}
.footer-logo img { width: 50px; }
.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ================= VIDEOS & MANUALS ================= */
.video-wrapper {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
}
.video-wrapper video {
    width: 100%;
    display: block;
}

.section-manuales {
    background: linear-gradient(180deg, #0a151f 0%, var(--bg-dark) 100%);
}

.card-manual {
    background: rgba(10, 10, 15, 0.8);
}
.os-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}
.step-list {
    margin-left: 1.5rem;
    margin-bottom: 2rem;
}
.step-list li {
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}
.step-list strong {
    color: var(--text-main);
}
.pwa-video-small {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}
.pwa-video-small video {
    width: 100%;
    display: block;
}
.feature-list {
    list-style: none;
    padding: 0;
}
.feature-list li {
    background: rgba(255,255,255,0.05);
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--color-alarma);
    color: var(--text-muted);
}
.feature-list strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 0.3rem;
}

.configuracion-compacta {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(10, 10, 15, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    text-align: center;
}
.config-step {
    background: rgba(255,255,255,0.03);
    padding: 1rem;
    border-radius: 8px;
    border-top: 2px solid var(--color-ayuda);
    font-size: 0.9rem;
}

.tutorial-grid {
    gap: 3rem;
    margin-top: 2rem;
}
.video-tutorial-header {
    margin-top: 6rem !important;
    margin-bottom: 2rem;
    padding: 1.2rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(20, 20, 25, 0.8);
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.6);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.video-tutorial-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}
.tutorial-video {
    background: #000;
    display: flex;
    flex-direction: column;
}
.tutorial-video video {
    height: 500px;
    width: 281px;
    margin: 0 auto 1rem auto;
    object-fit: cover;
    background: #000;
    border-radius: 8px;
}
.tutorial-title {
    font-size: 1.4rem;
    font-weight: 700;
    padding: 0.8rem;
    border-radius: 8px;
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}
.tutorial-title.text-alarma {
    border-color: rgba(255, 59, 48, 0.5);
    box-shadow: 0 0 15px var(--color-alarma-glow);
}
.tutorial-title.text-ayuda {
    border-color: rgba(0, 242, 254, 0.5);
    box-shadow: 0 0 15px var(--color-ayuda-glow);
}

/* Ajuste específico para reducir las dimensiones del logotipo de la cabecera */
.navbar-logo-edit img {
    max-width: 45px !important;
    height: auto !important;
}
.navbar-logo-edit span {
    font-size: 1.1rem !important;
}


/* Ajuste de dimensiones específicas solo para final.mp4 y alarma-sos.mp4 */
.main-video-wrapper-edit {
    max-width: 250px !important; /* Reducido a la mitad */
    margin: 0 auto !important;
}
