@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700;900&display=swap');

:root {
    --primary: #0071e3;
    --bg: #0b0b0c;
    --card-bg: rgba(255, 255, 255, 0.05);
    --accent: #2cfcd0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: #fff;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 11, 12, 0.8);
    backdrop-filter: blur(15px);
}

.logo { font-weight: 900; font-size: 1.5rem; letter-spacing: -1px; }
.logo span { color: var(--primary); margin-left: 4px; }

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    min-height: 85vh;
    padding-top: 50px;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 20px;
    display: inline-block;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1;
    margin-bottom: 20px;
}

.gradient {
    background: linear-gradient(to right, #0071e3, #2cfcd0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.1rem;
    color: #a1a1a6;
    max-width: 450px;
    margin-bottom: 30px;
}

/* Precios */
.price-container { margin-bottom: 30px; }
.old-price { text-decoration: line-through; color: #666; margin-right: 10px; }
.current-price { font-size: 2rem; font-weight: bold; }

.btn-main {
    background: #fff;
    color: #000;
    padding: 18px 40px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.btn-main:hover { background: var(--primary); color: #fff; }

/* Imagen con efecto de flotación */
.hero-img-container {
    position: relative;
    display: flex;
    justify-content: center;
}

.main-img {
    width: 100%;
    max-width: 450px;
    z-index: 2;
    animation: floating 5s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-25px); }
}

.blur-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(120px);
    opacity: 0.3;
    z-index: 1;
}

/* Grid de Características */
.grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
    padding-bottom: 100px;
}

.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
}

.card:hover { border-color: var(--primary); transform: translateY(-10px); }
.card i { font-size: 2rem; color: var(--primary); margin-bottom: 15px; display: block; }

/* Responsive para celulares */
@media (max-width: 768px) {
    .hero { grid-template-columns: 1fr; text-align: center; }
    .hero-text h1 { font-size: 3rem; }
    .hero-text p { margin: 0 auto 30px; }
    .main-img { max-width: 300px; margin-top: 40px; }
}

/* Sección de Beneficios con Fondo */
.benefits-section {
    position: relative;
    padding: 100px 0;
    margin: 80px 0;
    background-image: url('img/fondo-tecnologico.jpg'); /* Asegúrate de tener esta imagen */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto Parallax sutil */
    border-radius: 40px;
    overflow: hidden;
}

.benefits-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(11, 11, 12, 0.9), rgba(11, 11, 12, 0.7));
    z-index: 1;
}

.benefits-section .container {
    position: relative;
    z-index: 2;
}

.benefits-header {
    text-align: center;
    margin-bottom: 60px;
}

.benefits-header h2 {
    font-size: 2.5rem;
    margin-top: 15px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: 0.4s ease;
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: var(--primary);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    box-shadow: 0 10px 20px rgba(0, 113, 227, 0.3);
}

.benefit-text h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.benefit-text p {
    color: #a1a1a6;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Ajuste móvil */
@media (max-width: 768px) {
    .benefits-section {
        margin: 40px 10px;
        background-attachment: scroll; /* Mejor rendimiento en móviles */
    }
}

/* FAQ Section Styles */
.faq-section {
    padding: 100px 0;
    background-color: var(--bg);
}

.faq-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: 0.3s;
}

.faq-question {
    width: 100%;
    padding: 25px;
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question i {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.faq-answer p {
    padding-bottom: 25px;
    color: #a1a1a6;
    line-height: 1.6;
}

/* Estado activo del acordeón */
.faq-item.active {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg); /* Cambia el + por una X */
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Suficiente espacio para el texto */
    padding-top: 10px;
}

/* Footer Estilo Premium */
.main-footer {
    background-color: #050505;
    padding: 80px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand p {
    color: #a1a1a6;
    margin-top: 20px;
    font-size: 0.95rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.footer-links h4, .footer-payments h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #a1a1a6;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* Badges de Pago */
.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.pay-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.delivery-tag {
    color: var(--accent);
    font-size: 0.9rem;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #666;
    font-size: 0.8rem;
}

/* Responsivo */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .footer-brand p {
        margin: 20px auto;
    }
    
    .social-links, .payment-icons {
        justify-content: center;
    }
}

/* Bento Grid Layout */
.bento-section {
    padding: 80px 0;
    background-color: #0b0b0c; /* Color de fondo claro estilo Apple */
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.bento-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bento-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.bento-item {
    position: relative;
    border-radius: 35px; /* Bordes bien redondeados */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

/* Tarjeta Negra Grande */
.bento-large {
    background: #000;
    color: #fff;
    grid-row: span 1;
    min-height: 620px;
}

/* Tarjetas Claras */
.light-bg {
    background: #ffffff;
    color: #1d1d1f;
}

.bento-content {
    padding: 40px;
    z-index: 2;
}

.bento-content h2 { font-size: 2.2rem; margin-bottom: 15px; font-weight: 700; }
.bento-content h3 { font-size: 1.5rem; margin-bottom: 10px; font-weight: 700; }
.bento-content p { font-size: 1.1rem; opacity: 0.8; max-width: 250px; }

/* Imágenes dentro de las tarjetas */
.bento-img-full {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.bento-img-center {
    width: 100%;
    margin: 0 auto;
    display: block;
}

.bento-img-bottom {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-top: auto;
}

.bento-img-side {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-large {
        min-height: 500px;
    }
}

@media (max-width: 600px) {
    .bento-row {
        grid-template-columns: 1fr;
    }
}

/* Especificaciones Técnicas con Pestañas */
.specs-tech-section {
    padding: 100px 0;
    background-color: #0b0b0c;
}

.specs-header {
    text-align: center;
    margin-bottom: 40px;
}

.specs-tabs-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.tabs-header {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    color: #a1a1a6;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 12px;
}

.tab-btn:hover, .tab-btn.active {
    color: #fff;
    background: rgba(0, 113, 227, 0.2);
}

.tab-btn.active {
    color: var(--primary);
}

/* Animación de contenido */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.specs-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.specs-list li {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 15px;
    font-size: 0.95rem;
    color: #e8e8ed;
}

.specs-list li strong {
    display: block;
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

@media (max-width: 600px) {
    .tabs-header {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Sección de Reseñas */
.reviews-section {
    padding: 80px 0;
    background-color: #0b0b0c;
    overflow: hidden;
}

.reviews-header {
    text-align: center;
    margin-bottom: 50px;
}

.marquee-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
    display: flex;
    gap: 20px;
    animation: scroll 40s linear infinite;
}

.marquee-reverse .marquee-content {
    animation: scroll-reverse 40s linear infinite;
}

/* Pausar al pasar el mouse */
.marquee:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

@keyframes scroll-reverse {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.review-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 20px;
    width: 300px;
    flex-shrink: 0;
}

.review-card .stars { color: #ffb400; margin-bottom: 10px; font-size: 0.8rem; }
.review-card p { font-size: 0.9rem; color: #a1a1a6; line-height: 1.4; }
.review-card .user { margin-top: 15px; display: flex; align-items: center; gap: 10px; }
.review-card .user-info h4 { font-size: 0.85rem; color: #fff; }
.review-card .user-info span { font-size: 0.75rem; color: var(--primary); }

/* Sección Batería Adaptada al Diseño Dark */
.battery-section-dark {
    padding: 120px 0;
    background-color: var(--bg); /* Mantiene el fondo oscuro de la web */
    text-align: center;
}

.battery-header-text {
    max-width: 850px;
    margin: 0 auto 50px;
}

.battery-header-text h2 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 25px 0;
    letter-spacing: -2px;
}

.battery-header-text p {
    font-size: 1.25rem;
    color: #a1a1a6;
    line-height: 1.6;
    max-width: 750px;
    margin: 0 auto;
}

/* Contenedor Visual con Brillo */
.battery-visual {
    position: relative;
    display: inline-block;
    margin-top: 40px;
}

.battery-visual img {
    max-width: 550px;
    width: 100%;
    z-index: 2;
    position: relative;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.2;
    z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .battery-section-dark {
        padding: 80px 20px;
    }
    .battery-header-text h2 {
        font-size: 2.8rem;
    }
}

/* Botón Flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

/* Tooltip (Mensaje pequeño al costado) */
.tooltip-text {
    position: absolute;
    right: 75px;
    background-color: #333;
    color: #fff;
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.whatsapp-float:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
}

/* Animación de pulso */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }
    .tooltip-text {
        display: none; /* Ocultar tooltip en móvil para no tapar contenido */
    }
}


/* Sección Rastreo Preciso Dark */
.find-my-section {
    padding: 100px 0;
    background-color: var(--bg);
}

.find-my-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.find-my-text {
    text-align: left;
}

.find-my-text h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 20px 0;
}

.find-my-text p {
    color: #a1a1a6;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Resalte de estadística */
.stat-highlight {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}

.stat-desc {
    color: #a1a1a6;
    font-size: 1rem;
}

/* Mockup de iPhone */
.find-my-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.iphone-mockup {
    position: relative;
    width: 100%;
    max-width: 350px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 8px solid #1d1d1f;
}

.interface-img {
    width: 100%;
    display: block;
}

/* Efecto de pulso verde sutil */
.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: rgba(46, 204, 113, 0.2);
    border-radius: 50%;
    animation: pulse-find 2s infinite;
}

@keyframes pulse-find {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

/* Adaptación móvil */
@media (max-width: 992px) {
    .find-my-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .find-my-text {
        text-align: center;
        order: 1;
    }
    .find-my-visual {
        order: 2;
    }
    .stat-highlight {
        border-top: none;
    }
}


/* 1. Navbar: Ocultar menú largo en móvil o apilarlo */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 5%;
    }
    .nav-links {
        display: none; /* Aquí podrías implementar un menú hamburguesa */
    }
}

/* 2. Hero Section: Apilar texto e imagen */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 100px;
        min-height: auto;
    }
    .hero-text h1 {
        font-size: 2.8rem;
    }
    .hero-img-container {
        margin-top: 50px;
    }
    .main-img {
        max-width: 280px; /* Tamaño ideal para celulares */
    }
}

/* 3. Bento Grid: De 2 columnas a 1 sola */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: 1fr; /* Todo hacia abajo */
    }
    .bento-large {
        min-height: 450px;
    }
}

/* 4. Especificaciones: Ajustar las pestañas (Tabs) */
@media (max-width: 600px) {
    .tabs-header {
        flex-direction: column;
        gap: 5px;
    }
    .tab-btn {
        width: 100%;
        text-align: center;
        background: rgba(255,255,255,0.05);
    }
    .specs-list {
        grid-template-columns: 1fr; /* Lista simple en móvil */
    }
}

/* 5. Reseñas: Hacer que las tarjetas sean un poco más angostas */
@media (max-width: 480px) {
    .review-card {
        width: 260px;
        padding: 15px;
    }
}

/* Ajustes base para que nada se salga de la pantalla */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    padding-right: 20px;
    padding-left: 20px;
    margin-right: auto;
    margin-left: auto;
}

/* Tipografía fluida: se ajusta sola según el tamaño de pantalla */
html {
    font-size: 16px;
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}