/* ==========================================================================
   1. VARIABLES Y CONFIGURACIÓN BASE
   ========================================================================== */
:root {
    --turquesa-main: #40e0d0;
    --turquesa-light: #e0f7f9;
    --azul-deep: #003366;
    --dark: #2d3436;
    --white: #ffffff;
    --error: #dc3545;
    --success: #28a745;
    --border: #eeeeee;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

* { 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    scroll-behavior: smooth;
    font-family: 'Montserrat', sans-serif;
    background: var(--turquesa-light);
    color: var(--dark);
    line-height: 1.6;
}

/* Contenedor Global */
.main-wrapper { 
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto; 
}

/* ==========================================================================
   2. NAVBAR Y NAVEGACIÓN
   ========================================================================== */
.navbar {
    background: var(--white);
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.nav-logo img { height: 60px; transition: 0.3s; }

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links {
    color: var(--azul-deep);
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-login-nav {
    background: var(--turquesa-main);
    color: white !important;
    border-radius: 50px;
    padding: 10px 25px !important;
    margin-left: 10px;
}

/* Menú Móvil */
.menu-toggle { display: none; flex-direction: column; cursor: pointer; }
.bar { width: 25px; height: 3px; background-color: var(--azul-deep); margin: 4px 0; transition: 0.4s; border-radius: 3px; }

/* ==========================================================================
   3. SECCIÓN HERO (LANDING)
   ========================================================================== */
.hero-section { padding: 80px 0; overflow: hidden; }

.hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    text-align: left;
}

.hero-content { flex: 1.2; }
.hero-media { flex: 0.8; position: relative; }

.hero-content h1 { 
    font-weight: 900; 
    font-size: 3.2rem; 
    line-height: 1.1; 
    margin-bottom: 25px; 
    color: var(--azul-deep);
}

.hero-content h1 span { color: var(--turquesa-main); }

.hero-list { list-style: none; padding: 0; margin-bottom: 35px; }
.hero-list li { margin-bottom: 12px; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.hero-list i { color: var(--turquesa-main); font-size: 1.3rem; }

.hero-image-wrapper img {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    border-radius: 50px;
    box-shadow: 30px 30px 80px rgba(0,0,0,0.1);
}

.live-indicator {
    position: absolute;
    bottom: 30px;
    left: -20px;
    background: white;
    padding: 15px 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow);
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==========================================================================
   4. TECNOLOGÍA DUAL Y CARDS
   ========================================================================== */
.tech-section { padding: 80px 0; background: var(--white); }

.section-title { font-size: 2.5rem; font-weight: 900; margin-bottom: 15px; text-align: center; color: var(--azul-deep); }
.section-title span { color: var(--turquesa-main); }
.section-subtitle { text-align: center; max-width: 700px; margin: 0 auto 50px; color: #666; }

.dual-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.tech-card {
    padding: 40px;
    border-radius: 40px;
    transition: 0.4s;
    border: 1px solid var(--border);
    background: #fdfdfd;
}

.card-blue { border-bottom: 8px solid #3498db; }
.card-green { border-bottom: 8px solid #2ecc71; }

.card-icon-header { display: flex; align-items: center; gap: 20px; margin-bottom: 25px; text-align: left; }
.card-icon-header i { font-size: 2.5rem; color: var(--azul-deep); }
.card-img { width: 100%; height: 250px; object-fit: cover; border-radius: 25px; margin-top: 20px; }

/* ==========================================================================
   5. BANNER TRANQUILIDAD Y ALERTA
   ========================================================================== */
.tranquilidad-banner {
    background: linear-gradient(135deg, var(--azul-deep) 0%, #001a33 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.banner-content i { font-size: 4rem; color: var(--turquesa-main); margin-bottom: 20px; }

.alert-box-card {
    display: flex;
    align-items: center;
    background: var(--azul-deep);
    color: white;
    padding: 60px;
    border-radius: 50px;
    gap: 50px;
    margin: 80px auto;
    text-align: left;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.alert-media img { width: 100%; border-radius: 30px; }

/* ==========================================================================
   6. PASOS Y POR QUÉ ELEGIR
   ========================================================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 60px 0;
}

.step-item { padding: 30px; text-align: center; }
.step-number {
    width: 60px; height: 60px; background: var(--turquesa-main);
    color: var(--azul-deep); border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-weight: 900;
    font-size: 1.5rem; margin: 0 auto 20px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 50px 0;
}

.why-card {
    background: white; padding: 35px; border-radius: 30px;
    text-align: center; box-shadow: var(--shadow);
}

.mini-gallery { display: flex; gap: 20px; justify-content: center; padding: 40px 0; }
.mini-gallery img { width: 250px; height: 250px; object-fit: cover; border-radius: 25px; }

/* ==========================================================================
   7. FORMULARIO DE ACTIVACIÓN
   ========================================================================== */
.activation-section { padding: 100px 0; background: var(--turquesa-light); }

.activation-card {
    background: var(--white);
    border-radius: 40px;
    padding: 50px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    max-width: 550px;
    margin: 0 auto;
}

.input-tag-code {
    text-align: center;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.5rem !important;
    border: 3px solid var(--turquesa-main) !important;
    color: var(--azul-deep);
    background: #f9ffff;
}

input, select {
    width: 100%; padding: 18px; border: 2px solid var(--border);
    border-radius: 18px; font-size: 1rem; margin-bottom: 18px;
    font-family: 'Montserrat', sans-serif; transition: 0.3s;
}

.input-row { display: flex; gap: 15px; }

.photo-upload-circle {
    width: 150px; height: 150px; border-radius: 50%;
    border: 3px dashed var(--turquesa-main); margin: 0 auto 30px;
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; cursor: pointer; background-size: cover;
    background-position: center; transition: 0.3s;
}

/* ==========================================================================
   8. BOTONES
   ========================================================================== */
.btn {
    padding: 18px 35px; border-radius: 50px; text-decoration: none;
    font-weight: 800; cursor: pointer; border: none;
    display: inline-flex; align-items: center; justify-content: center;
    gap: 12px; transition: 0.3s; font-size: 1rem;
}

.btn-primary { background: var(--azul-deep); color: white !important; }
.btn-activate { background: var(--turquesa-main); color: var(--azul-deep); width: 100%; }
.btn-outline { border: 2px solid var(--azul-deep); color: var(--azul-deep); }

.btn:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }

/* ==========================================================================
   9. FOOTER VERSIÓN OSCURA
   ========================================================================== */
.footer-main {
    background: var(--azul-deep); /* Usamos el azul oscuro de tu marca */
    color: rgba(255, 255, 255, 0.8); /* Texto blanco suave */
    padding: 80px 0 30px;
    margin-top: 80px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Línea divisoria sutil */
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 120px;
    margin-bottom: 20px;
}

.footer-column h4 {
    color: var(--turquesa-main); /* Resaltamos títulos con el turquesa */
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-column a {
    display: block;
    color: white;
    text-decoration: none;
    margin-bottom: 12px;
    transition: 0.3s;
    font-size: 0.95rem;
}

.footer-column a:hover {
    color: var(--turquesa-main);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   10. RESPONSIVO (MÓVIL)
   ========================================================================== */
@media screen and (max-width: 960px) {
    /* Esto elimina el scroll horizontal en la sección de tecnología */
    .dual-cards-grid {
        grid-template-columns: 1fr; /* Cambia de 2 columnas a 1 sola */
        gap: 25px;   /* Reduce un poco el espacio entre tarjetas */
        width: 100%;
    }
    /* --- Arreglo Sección "Cómo funciona" (3 pasos) --- */
    .steps-grid {
        grid-template-columns: 1fr; /* Cambia de 3 a 1 columna */
        gap: 40px; /* Espacio para que no se vean pegados los pasos */
        width: 100%;
    }
    /* Ajuste de tarjetas individuales para que no desborden */
    .tech-card, .step-item {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 30px 15px; /* Relleno interno más cómodo en móvil */
    }

    /* Aseguramos que las imágenes no forcen el ancho */
    .card-img {
        height: auto;
        max-height: 250px;
        width: 100%;
        object-fit: cover;
    }
    
    .menu-toggle { display: flex; }
    .nav-menu {
        position: fixed; top: 80px; left: -100%;
        flex-direction: column; background-color: var(--white);
        width: 100%; height: auto; padding: 40px 0;
        text-align: center; transition: 0.4s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .nav-menu.active { left: 0; }
    
    .hero-grid, .dual-cards-grid, .alert-box-card, .steps-grid {
        flex-direction: column; text-align: center;
    }

    .hero-content h1 { font-size: 2.2rem; }
    .hero-media, .alert-media { max-width: 100%; }
    .hero-image-wrapper img { height: 350px; }
    
    .mini-gallery img { width: 100px; height: 100px; }
}

/* ==========================================================================
   11. DASHBOARD Y ADMIN (NO ELIMINAR)
   ========================================================================== */
.status-perdido { background: #ffebee; color: #f44336; animation: blink-red 1.5s infinite; padding: 4px 10px; border-radius: 8px; }
@keyframes blink-red { 50% { opacity: 0.6; } }

.dashboard-user-header {
    background: linear-gradient(135deg, var(--turquesa-main) 0%, var(--azul-deep) 100%);
    padding: 60px 20px 100px; border-radius: 0 0 50px 50px; color: white;
}

/* ==========================================================================
   12. Ajuste de tamaño de iconos en "Por qué elegir"   
   ========================================================================== */

.why-icon {
    width: 100px;           /* Antes era más pequeño, ahora 100px */
    height: 100px;          /* Mantener igual al ancho para que sea un círculo */
    border-radius: 50%;
    display: flex;/* ==========================================================================
   ESTILOS ESPECÍFICOS DEL DASHBOARD (MODO APP)
   ========================================================================== */

/* Contenedor principal del Dashboard */
.container-app {
    padding: 20px;
    max-width: 600px;
    margin: -40px auto 100px; /* Sube un poco para entrar en la cabecera azul */
    position: relative;
    z-index: 10;
}

/* Cabecera del Usuario */
.dashboard-user-header {
    background: linear-gradient(135deg, var(--azul-deep) 0%, #001a33 100%);
    padding: 50px 20px 80px;
    text-align: center;
    border-radius: 0 0 40px 40px;
}

.user-logo-box { margin-bottom: 15px; }

/* Lista de Mascotas y Tarjetas */
.pet-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pet-card-user {
    background: white;
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 25px;
    box-shadow: var(--shadow);
    gap: 15px;
    transition: 0.3s;
}

.pet-card-user:hover {
    transform: translateY(-3px);
}

.pet-thumb-user {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    object-fit: cover;
    background: #f0f0f0;
}

.pet-info {
    flex: 1;
}

.pet-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

/* Nav Inferior (Mobile Style) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75px;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
    z-index: 1000;
    border-radius: 25px 25px 0 0;
}

.nav-link-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #999;
    font-size: 0.7rem;
    font-weight: 700;
    gap: 5px;
}

.nav-link-app i {
    font-size: 1.4rem;
}

.nav-link-app.active {
    color: var(--turquesa-main);
}

/* Modal de Vinculación */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 51, 102, 0.85); /* Azul deep con transparencia */
    display: none; /* Se controla con JS */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.modal-content-app {
    width: 100%;
    max-width: 400px;
    position: relative;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Errores */
.msg-error {
    color: var(--error);
    background: #fff5f5;
    padding: 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    border: 1px solid #ffebeb;
}

/* Ajuste para que el cuerpo no se vea raro con el fondo turquesa de la landing */
body {
    background-color: #f8fafc; /* Gris muy claro para el dashboard */
}
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;    /* Centrado con margen inferior */
    transition: 0.3s;
}

.why-icon i {
    font-size: 2.5rem;      /* Este es el tamaño del icono (antes ~1.5rem) */
}

/* ==========================================================================
   ESTILOS ESPECÍFICOS DEL DASHBOARD (MODO APP)
   ========================================================================== */

/* Contenedor principal del Dashboard */
.container-app {
    padding: 20px;
    max-width: 600px;
    margin: 40px auto 100px; /* Sube un poco para entrar en la cabecera azul */
    position: relative;
    z-index: 10;
}

/* Cabecera del Usuario */
.dashboard-user-header {
    background: linear-gradient(135deg, var(--turquesa-main) 0%, #008080 100%);
    padding: 10px;
    text-align: center;
    border-radius: 0 0 40px 40px;
}

.user-logo-box { margin-bottom: 15px; }

/* Lista de Mascotas y Tarjetas */
.pet-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pet-card-user {
    background: white;
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 25px;
    box-shadow: var(--shadow);
    gap: 15px;
    transition: 0.3s;
}

.pet-card-user:hover {
    transform: translateY(-3px);
}

.pet-thumb-user {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    object-fit: cover;
    background: #f0f0f0;
}

.pet-info {
    flex: 1;
}

.pet-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

/* Nav Inferior (Mobile Style) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75px;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
    z-index: 1000;
    border-radius: 25px 25px 0 0;
}

.nav-link-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #999;
    font-size: 0.7rem;
    font-weight: 700;
    gap: 5px;
}

.nav-link-app i {
    font-size: 1.4rem;
}

.nav-link-app.active {
    color: var(--turquesa-main);
}

/* Modal de Vinculación */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 51, 102, 0.85); /* Azul deep con transparencia */
    display: none; /* Se controla con JS */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.modal-content-app {
    width: 100%;
    max-width: 400px;
    position: relative;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Errores */
.msg-error {
    color: var(--error);
    background: #fff5f5;
    padding: 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    border: 1px solid #ffebeb;
}

/* Ajuste para que el cuerpo no se vea raro con el fondo turquesa de la landing */
body {
    background-color: #f8fafc; /* Gris muy claro para el dashboard */
}