:root {
    --bg: #f8fafc;
    --primary: #2563eb;
    --text: #0f172a;
    --gray: #64748b;
}

* {
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

/* CONTENEDOR */
.container {
    width:100%;
    max-width:1200px;
    margin:auto;
    padding:20px;
}

/* NAV */
header {
    position: fixed;
    width: 100%;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav {
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo {
    width:140px;
}

nav a {
    margin-left:20px;
    text-decoration:none;
    color:var(--text);
    transition:0.3s;
}

nav a:hover {
    color:var(--primary);
}

/* MENU MOBILE */
.menu-toggle {
    display:none;
    font-size:24px;
    cursor:pointer;
}

/* HERO */
.hero {
    padding-top:130px;
}

.hero-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));
    gap:40px;
    align-items:center;
}

.hero-text h1 {
    font-size: clamp(28px, 5vw, 48px);
}

.hero-text span {
    color:var(--primary);
}

.hero-text p {
    margin:20px 0;
    color:var(--gray);
    font-size: clamp(14px, 2vw, 16px);
}

.hero-list {
    margin:20px 0;
    padding-left:15px;
}

/* BOTÓN */
.btn {
    display:inline-block;
    padding:12px 24px;
    background:var(--primary);
    color:white;
    border-radius:8px;
    text-decoration:none;
    box-shadow:0 10px 20px rgba(0,0,0,0.1);
    transition:0.3s;
}

.btn:hover {
    transform:translateY(-2px);
    box-shadow:0 15px 25px rgba(0,0,0,0.15);
}

/* IMAGEN HERO */
.hero-img img {
    width:100%;
    max-width:450px;
    animation: float 4s infinite ease-in-out;
}

@keyframes float {
    50% { transform: translateY(-10px); }
}

/* SECCIONES */
.section {
    margin-top:100px;
}

h2 {
    margin-bottom:25px;
    color:var(--primary);
    font-size: clamp(22px, 3vw, 32px);
}

/* CARDS */
.cards {
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));
    gap:20px;
}

/* CARD */
.card {
    background:white;
    border-radius:16px;
    box-shadow:0 6px 15px rgba(0,0,0,0.1);
    border:1px solid #00000020;
    transition:all 0.5s ease; /* más suave */
    position:relative;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    min-height:420px;
    cursor:pointer;
}

/* INNER */
.card-inner {
    padding:20px;
    display:flex;
    flex-direction:column;
    height:100%;
    gap:12px;
    transition: transform 0.5s ease; /* suave */
    transform-style: preserve-3d;
}

/* HOVER */
.card:hover {
    transform: translateY(-3px); /* menos brusco */
    box-shadow:0 15px 35px rgba(0,0,0,0.08);
}

.card::after {
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(120deg, transparent, rgba(37,99,235,0.05), transparent);
    opacity:0;
    transition:0.5s ease;
    pointer-events:none;
}

.card:hover::after {
    opacity:1;
}

/* IMAGEN CARD */
.card-img {
    width:100%;
    height:180px;
    object-fit:contain;
    border-radius:10px;
    margin-bottom:10px;
    transition: transform 0.5s ease; /* más suave */
}

/* LISTA */
.card ul {
    padding-left:20px;
    color:var(--gray);
    font-size:14px;
    flex-grow:1;
}

/* PRECIO */
.price {
    color:var(--primary);
    font-weight:bold;
}

/* BOTÓN CARD */
.btn-card {
    display:inline-block;
    margin-top:10px;
    padding:10px;
    background:var(--primary);
    color:white;
    border-radius:8px;
    text-align:center;
    text-decoration:none;
    transition:all 0.35s ease;
}

.btn-card:hover {
    transform:translateY(-2px);
    box-shadow:0 10px 20px rgba(0,0,0,0.15);
}

/* ABOUT */
.about-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));
    gap:40px;
    align-items:center;
}

.about-text p {
    margin:15px 0;
    color:var(--gray);
}

.about-text ul {
    margin-top:15px;
    padding-left:20px;
}

.about-img img {
    width:100%;
    max-width:450px;
}

/* REDES */
.socials {
    margin-top:20px;
    display:flex;
    gap:20px;
}

.socials i {
    font-size:24px;
    color:var(--primary);
    transition:0.3s;
}

.socials i:hover {
    transform:scale(1.2);
}

/* WHATSAPP */
.whatsapp-float {
    position:fixed;
    bottom:25px;
    right:25px;
    background:#25d366;
    color:white;
    padding:15px;
    border-radius:50%;
    font-size:24px;
    box-shadow:0 10px 25px rgba(0,0,0,0.2);
    z-index:999;
    animation:pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37,211,102, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(37,211,102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37,211,102, 0);
    }
}

/* ANIMACIÓN SCROLL */
.fade {
    opacity:0;
    transform:translateY(30px);
    transition:0.8s;
}

.fade.show {
    opacity:1;
    transform:translateY(0);
}

/* SCROLL FIX */
section {
    scroll-margin-top:120px;
}

/* ========================= */
/* 📱 RESPONSIVE REAL */
/* ========================= */

/* TABLET */
@media (max-width:1024px){
    .container { padding:15px; }
    .hero-img img { max-width:350px; }
    .card { min-height:auto; }
}

/* MOBILE */
@media (max-width:768px){
    .menu-toggle { display:block; }
    nav {
        position:absolute;
        top:70px;
        right:0;
        background:white;
        width:100%;
        display:flex;
        flex-direction:column;
        align-items:center;
        gap:20px;
        padding:20px;
        transform:translateY(-200%);
        transition:0.3s;
    }
    nav.active { transform:translateY(0); }
    nav a { margin:0; font-size:18px; }
    .hero { padding-top:120px; text-align:center; }
    .hero-img img { max-width:280px; }
    .about-grid { text-align:center; }
    .whatsapp-float { bottom:15px; right:15px; padding:12px; font-size:20px; }
}

/* BADGE VERDE */
.badge {
    position: absolute;
    top:15px;
    left:15px;
    background:#16a34a; /* verde */
    color:white;
    font-size:12px;
    font-weight:600;
    padding:4px 8px;
    border-radius:6px;
    z-index:10;
    box-shadow:0 3px 8px rgba(0,0,0,0.15);
    transition:all 0.3s ease;
}

.card:hover .badge {
    transform:translateY(-2px); /* un pequeño movimiento al hover de la card */
    box-shadow:0 5px 12px rgba(0,0,0,0.2);
}