/* GEOZOO PET SHOP - Hoja de estilos principal
   Archivo: styles/style.css
   La imagen fondo1.png se encuentra en resources/.
*/

/* 1. ESTILOS GENERALES */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Plus Jakarta Sans', sans-serif;
        }
        html {
            scroll-behavior: smooth;
        }
        body {
            background: #f8f9fa;
            color: #121212;
        }
        /* 2. CABECERA Y NAVEGACIÓN */
        header {
            background: white;
            padding: 15px 7%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 1000;
            border-bottom: 1px solid #eeeeee;
        }
        .logo {
            display: flex;
            align-items: center;
            text-decoration: none;
            font-size: 28px;
            font-weight: bold;
        }
        .logo img {
            width: 50px;
            margin-right: 10px;
        }
        .geo {
            color: #ff6b00;
        }
        .zoo {
            color: #121212;
        }
        /* MENU */
        nav {
            display: flex;
            gap: 25px;
        }
        nav a {
            text-decoration: none;
            color: #121212;
            font-weight: bold;
        }
        nav a:hover {
            color: #ff6b00;
        }
        /* BOTONES DEL HEADER */
        .acciones {
            display: flex;
            gap: 10px;
            align-items: center;
        }
        .boton-login {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            border: 1px solid #dddddd;
            background: white;
            cursor: pointer;
        }
        .boton-login:hover {
            color: #ff6b00;
            border-color: #ff6b00;
        }
        .boton-whatsapp {
            background: #ff6b00;
            color: white;
            text-decoration: none;
            padding: 11px 20px;
            border-radius: 25px;
            font-weight: bold;
        }
        .boton-whatsapp:hover {
            background: #e56000;
        }
        /* MODAL LOGIN */
        .fondo-login {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.6);
            justify-content: center;
            align-items: center;
            z-index: 2000;
        }
        .caja-login {
            background: white;
            width: 90%;
            max-width: 400px;
            padding: 35px;
            border-radius: 20px;
            position: relative;
        }
        .caja-login h2 {
            margin-bottom: 10px;
        }
        .cerrar {
            position: absolute;
            right: 20px;
            top: 15px;
            border: none;
            background: none;
            font-size: 22px;
            cursor: pointer;
        }
        .grupo {
            margin-top: 20px;
        }
        .grupo label {
            display: block;
            margin-bottom: 7px;
            font-weight: bold;
        }
        .grupo input {
            width: 100%;
            padding: 12px;
            border: 1px solid #dddddd;
            border-radius: 10px;
        }
        .boton-ingresar {
            width: 100%;
            margin-top: 20px;
            padding: 13px;
            background: #ff6b00;
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
        }
        /* 4. PORTADA PRINCIPAL */
.portada {
    background-image: url('../resources/fondo1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 90px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    min-height: 650px;
}
        .texto-portada {
            width: 50%;
        }
        .etiqueta {
            color: #ff6b00;
            font-weight: bold;
        }
        .texto-portada h1 {
            font-size: 55px;
            margin-top: 15px;
            margin-bottom: 20px;
        }
        .texto-portada h1 span {
            color: #ff6b00;
        }
        .texto-portada p {
            color: #bbbbbb;
            font-size: 18px;
            margin-bottom: 30px;
        }
        .boton-principal {
            display: inline-block;
            background: #ff6b00;
            color: white;
            padding: 14px 25px;
            border-radius: 25px;
            text-decoration: none;
            font-weight: bold;
            margin-right: 10px;
        }
        .boton-secundario {
            display: inline-block;
            color: white;
            border: 2px solid #555555;
            padding: 12px 25px;
            border-radius: 25px;
            text-decoration: none;
            font-weight: bold;
        }
        /* TITULOS */
        .titulo {
            text-align: center;
            margin-bottom: 45px;
        }
        .titulo h2 {
            font-size: 40px;
            margin-bottom: 10px;
        }
        .titulo span {
            color: #ff6b00;
        }
        .titulo p {
            color: #666666;
        }
        /* PRODUCTOS DESTACADOS */
        .destacados {
            padding: 80px 7%;
        }
        .carrusel {
            max-width: 1000px;
            margin: auto;
            background: white;
            border-radius: 20px;
            border: 1px solid #eeeeee;
            position: relative;
            overflow: hidden;
        }
        .producto-slide {
            display: none;
            padding: 50px;
            align-items: center;
            gap: 40px;
        }
        .producto-slide.activo {
            display: flex;
        }
        .informacion-producto {
            width: 50%;
        }
        .informacion-producto h3 {
            font-size: 35px;
            margin: 15px 0;
        }
        .informacion-producto p {
            color: #666666;
            margin-bottom: 20px;
        }
        .categoria-producto {
            color: #ff6b00;
            font-weight: bold;
        }
        .precio {
            color: #ff6b00;
            font-size: 30px;
            font-weight: bold;
            margin-bottom: 25px;
        }
        .imagen-producto {
            width: 50%;
            height: 300px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #fff8f5;
            border-radius: 20px;
        }
        .imagen-producto img {
            max-width: 90%;
            max-height: 250px;
        }
        /* FLECHAS CARRUSEL */
        .flecha {
            position: absolute;
            top: 50%;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            border: 1px solid #dddddd;
            background: white;
            cursor: pointer;
            z-index: 10;
        }
        .flecha:hover {
            background: #ff6b00;
            color: white;
        }
        .anterior {
            left: 10px;
        }
        .siguiente {
            right: 10px;
        }
        /* PUNTOS DEL CARRUSEL */
        .puntos {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-top: 20px;
        }
        .punto {
            width: 12px;
            height: 12px;
            background: #cccccc;
            border-radius: 50%;
            cursor: pointer;
        }
        .punto.activo {
            background: #ff6b00;
        }
        /* CATALOGO */
        .catalogo {
            padding: 80px 7%;
            background: white;
        }
        .lista-categorias {
            display: grid;
            grid-template-columns:
            repeat(auto-fit, minmax(230px, 1fr));
            gap: 25px;
        }
        .enlace-categoria {
            text-decoration: none;
            color: #121212;
        }
        .categoria {
            background: #f8f9fa;
            padding: 40px 25px;
            border-radius: 20px;
            text-align: center;
            border: 1px solid #eeeeee;
        }
        .categoria:hover {
            border-color: #ff6b00;
            transform: translateY(-5px);
        }
        .icono {
            width: 70px;
            height: 70px;
            margin: auto;
            margin-bottom: 20px;
            border-radius: 50%;
            background: #ffe9da;
            color: #ff6b00;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 28px;
        }
        .categoria h3 {
            margin-bottom: 10px;
        }
        .categoria p {
            color: #666666;
        }
        /* PIE DE PÁGINA */
        footer {
            background: #121212;
            color: white;
            padding: 70px 7% 30px;
        }
        .contenido-footer {
            display: grid;
            grid-template-columns:
            repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
        }
        .columna-footer h3 {
            color: #ff6b00;
            margin-bottom: 20px;
        }
        .columna-footer p {
            color: #bbbbbb;
            margin-bottom: 10px;
        }
        .mapa {
            margin-top: 15px;
        }
        .mapa iframe {
            width: 100%;
            height: 230px;
            border: 0;
            border-radius: 15px;
        }
        .pie-final {
            border-top: 1px solid #333333;
            margin-top: 50px;
            padding-top: 25px;
            display: flex;
            justify-content: space-between;
            color: #888888;
        }
        .pie-final a {
            color: #ff6b00;
            text-decoration: none;
        }
        /* PARA CELULARES */
        @media(max-width: 768px) {
            nav {
                display: none;
            }
 .portada {
     display: block;
 }
            .texto-portada {
                width: 100%;
            }
            .texto-portada h1 {
                font-size: 38px;
            }
 .logo-portada {
                width: 100%;
                margin-top: 40px;
            }
            .producto-slide {
                display: none;
    padding: 30px;
            }
            .producto-slide.activo {
                display: block;
            }
            .informacion-producto {
                width: 100%;
            }
            .imagen-producto {
                width: 100%;
                margin-top: 30px;
    }
            .flecha {
                display: none;
            }
            .pie-final {
                display: block;
                text-align: center;
            }
            .pie-final p {
                margin-bottom: 10px;
            }
        }
/* ANIMACIONES: entradas y movimientos suaves */
.portada {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-image: none;
}
.portada::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url('../resources/fondo1.png') center / cover no-repeat;
    animation: geoZoom 22s ease-in-out infinite alternate;
}
.texto-portada {
    animation: geoEntrada .95s ease-out both;
}
.texto-portada p {
    animation: geoEntrada 1.1s .12s ease-out both;
}
.texto-portada .boton-principal, .texto-portada .boton-secundario {
    animation: geoEntrada 1.1s .25s ease-out both;
}
@keyframes geoEntrada { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes geoZoom { from { transform: scale(1); } to { transform: scale(1.055); } }
nav a {
    position: relative;
    transition: color .25s;
}
nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 2px;
    background: #ff6b00;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s;
}
nav a:hover::after {
    transform: scaleX(1);
}
.boton-principal, .boton-secundario, .boton-whatsapp, .boton-login {
    transition: transform .25s, box-shadow .25s, background-color .25s;
}
.boton-principal:hover, .boton-secundario:hover, .boton-whatsapp:hover, .boton-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(255,107,0,.22);
}
.categoria {
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.categoria:hover {
    box-shadow: 0 15px 32px rgba(255,107,0,.13);
}
.producto-slide.activo {
    animation: geoEntrada .5s ease-out both;
}
.geo-revelar {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
}
.geo-revelar.geo-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (max-width: 768px) { .portada::before { background-position: 64% center; } .portada { background-color: #151515; } }
@media (prefers-reduced-motion: reduce) {
  .portada::before, .texto-portada, .texto-portada p, .texto-portada .boton-principal, .texto-portada .boton-secundario, .producto-slide.activo {
      animation: none !important;
  }
  .geo-revelar {
      opacity: 1;
      transform: none;
      transition: none;
  }
  *, *::before, *::after {
      scroll-behavior: auto !important;
  }
}
/* SELECTOR DE IDIOMA */
.boton-idioma {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: .25s;
}
.boton-idioma:hover {
    background: #ff6b00;
    color: white;
    border-color: #ff6b00;
    transform: translateY(-2px);
}
/* ACCESIBILIDAD */
.solo-lector {
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}
.salto-contenido {
    position:fixed;
    top:-100px;
    left:12px;
    z-index:5000;
    background:#121212;
    color:white;
    padding:14px;
    border-radius:8px;
}
.salto-contenido:focus {
    top:12px;
}
:focus-visible {
    outline:3px solid #0077cc !important;
    outline-offset:4px;
}
.boton-accesibilidad {
    display:inline-flex;
    align-items:center;
    gap:8px;
    white-space:nowrap;
    background:#fff;
    color:#121212;
    border:2px solid #121212;
    border-radius:24px;
    padding:10px 14px;
    cursor:pointer;
    font-weight:700;
}
.panel-accesibilidad {
    padding:20px 7%;
    background:#fff4eb;
    border-bottom:2px solid #ff6b00;
}
.panel-accesibilidad[hidden] {
    display:none !important;
}
.panel-accesibilidad h2 {
    margin-bottom:8px;
}
.controles-accesibilidad {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin:14px 0;
}
.controles-accesibilidad button {
    border:2px solid #222;
    background:#fff;
    color:#111;
    border-radius:12px;
    padding:12px;
    cursor:pointer;
    font-weight:700;
}
.controles-accesibilidad button:hover {
    background:#ff6b00;
    color:#111;
}
body.movimiento-reducido *, body.movimiento-reducido *::before, body.movimiento-reducido *::after {
    animation:none !important;
    transition:none !important;
    scroll-behavior:auto !important;
}
body.movimiento-reducido .geo-revelar {
    opacity:1 !important;
    transform:none !important;
}
@media(max-width:768px) { header { flex-wrap:wrap; gap:12px; } .acciones { flex-wrap:wrap; } .boton-accesibilidad { padding:10px; } .boton-accesibilidad span { display:inline; } }
@media(prefers-reduced-motion:reduce) { .geo-revelar { opacity:1 !important; transform:none !important; } }
/* MASCOTA FIJA EN EL LATERAL */
#geozoo-mascota {
    position:fixed;
    right:14px;
    bottom:22px;
    width:145px;
    height:170px;
    z-index:1450;
    transition:transform .2s ease;
}
#geozoo-mascota .mascota-pulsar {
    display:block;
    width:100%;
    height:100%;
    position:relative;
    border:0;
    background:transparent;
    cursor:pointer;
    text-decoration:none;
    color:#222;
    filter:drop-shadow(0 8px 7px #0003);
}
#geozoo-mascota canvas {
    display:block;
    width:100%;
    height:100%;
}
#geozoo-mascota .mascota-alternativa {
    font-size:90px;
    display:none;
    line-height:130px;
    text-align:center;
}
#geozoo-mascota .mascota-etiqueta {
    position:absolute;
    bottom:0;
    left:50%;
    transform:translateX(-50%);
    white-space:nowrap;
    background:#fff;
    border:2px solid #ff6b00;
    border-radius:20px;
    padding:6px 10px;
    font-size:12px;
    font-weight:800;
    box-shadow:0 3px 12px #0002;
}
#geozoo-mascota .mascota-pulsar:hover {
    filter:drop-shadow(0 10px 10px #ff6b0070);
}
#geozoo-mascota .mascota-pulsar:focus-visible {
    outline:3px solid #0077cc;
    outline-offset:3px;
    border-radius:20px;
}
@media(max-width:600px){#geozoo-mascota{width:106px;height:128px;right:4px;bottom:10px}#geozoo-mascota .mascota-etiqueta{font-size:10px}}
@media(prefers-reduced-motion:reduce){#geozoo-mascota{transition:none}}
