/* Variables CSS */
:root {
    --color-primary: #1a365d;
    --color-primary-light: #2c5282;
    --color-secondary: #2b6cb0;
    --color-accent: #ed8936;
    --color-accent-dark: #dd6b20;
    --color-white: #ffffff;
    --color-gray-50: #f7fafc;
    --color-gray-100: #edf2f7;
    --color-gray-200: #e2e8f0;
    --color-gray-300: #cbd5e0;
    --color-gray-400: #a0aec0;
    --color-gray-500: #718096;
    --color-gray-600: #4a5568;
    --color-gray-700: #2d3748;
    --color-gray-800: #1a202c;
    --color-plus: #2b6cb0;
    --color-riovida: #805ad5;
    --color-energy: #ed8936;
    
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --border-radius-sm: 8px;
}

/* Reset y estilos base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-700);
    background-color: var(--color-gray-50);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--color-white);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo .tagline {
    color: var(--color-gray-300);
    font-size: 0.85rem;
    display: block;
    margin-top: 2px;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition);
}

.nav a:hover::after {
    width: 100%;
}

.nav a.active::after {
    width: 100%;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-product {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    width: 100%;
    padding: 14px 24px;
}

.btn-product:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-primary-light) 100%);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.hero h2 {
    color: var(--color-white);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    color: var(--color-gray-200);
    font-size: 1.15rem;
    margin-bottom: 35px;
    line-height: 1.8;
}

/* Sección de Productos */
.productos-section {
    padding: 80px 20px;
    background-color: var(--color-gray-50);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-gray-500);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Tarjetas de Producto */
.producto-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.producto-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    padding: 12px 20px;
    display: flex;
    justify-content: flex-end;
}

.card-header.card-plus {
    background: linear-gradient(135deg, var(--color-plus) 0%, #1a365d 100%);
}

.card-header.card-riovida {
    background: linear-gradient(135deg, var(--color-riovida) 0%, #553c9a 100%);
}

.card-header.card-energy {
    background: linear-gradient(135deg, var(--color-energy) 0%, #c05621 100%);
}

.card-header.card-crema {
    background: linear-gradient(135deg, #805ad5 0%, #553c9a 100%);
}

.card-header.card-bienestar {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

.badge {
    background: rgba(255, 255, 255, 0.25);
    color: var(--color-white);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-body {
    padding: 30px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.producto-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-plus ~ .card-body .producto-icon,
.card-header.card-plus + .card-body .producto-icon {
    background: linear-gradient(135deg, rgba(44, 82, 130, 0.1) 0%, rgba(26, 54, 93, 0.1) 100%);
    color: var(--color-plus);
}

.card-riovida ~ .card-body .producto-icon,
.card-header.card-riovida + .card-body .producto-icon {
    background: linear-gradient(135deg, rgba(128, 90, 213, 0.1) 0%, rgba(85, 60, 154, 0.1) 100%);
    color: var(--color-riovida);
}

.card-energy ~ .card-body .producto-icon,
.card-header.card-energy + .card-body .producto-icon {
    background: linear-gradient(135deg, rgba(237, 137, 54, 0.1) 0%, rgba(192, 86, 33, 0.1) 100%);
    color: var(--color-energy);
}

.card-crema ~ .card-body .producto-icon,
.card-header.card-crema + .card-body .producto-icon {
    background: linear-gradient(135deg, rgba(128, 90, 213, 0.1) 0%, rgba(85, 60, 154, 0.1) 100%);
    color: var(--color-riovida);
}

.card-bienestar ~ .card-body .producto-icon,
.card-header.card-bienestar + .card-body .producto-icon {
    background: linear-gradient(135deg, rgba(56, 161, 105, 0.1) 0%, rgba(47, 133, 90, 0.1) 100%);
    color: #38a169;
}

.producto-icon svg {
    width: 32px;
    height: 32px;
}

.producto-img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    margin-bottom: 18px;
    border-radius: var(--border-radius-sm);
}

.producto-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-gray-800);
    margin-bottom: 12px;
}

.producto-desc {
    color: var(--color-gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
    flex: 1;
}

.producto-features {
    list-style: none;
    margin-bottom: 20px;
}

.producto-features li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    color: var(--color-gray-600);
    font-size: 0.9rem;
}

.producto-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

.producto-price {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--color-gray-50);
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
}

.price-label {
    font-size: 0.85rem;
    color: var(--color-gray-500);
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.card-footer {
    padding: 0 24px 24px;
}

/* Secciones con fondo diferente */
.section-riovida {
    background-color: var(--color-gray-100);
}

.section-cremas {
    background-color: var(--color-gray-100);
}

/* Sección de Contacto */
.contacto-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: 80px 20px;
    text-align: center;
}

.contacto-section .section-title,
.contacto-section .section-subtitle {
    color: var(--color-white);
}

.contacto-section .section-subtitle {
    color: var(--color-gray-200);
    margin-bottom: 40px;
}

.contacto-section .btn-primary {
    background: var(--color-white);
    color: var(--color-primary);
}

.contacto-section .btn-primary:hover {
    background: var(--color-gray-100);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--color-gray-800);
    color: var(--color-gray-400);
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto 40px;
}

.footer-brand h3 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--color-gray-400);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-disclaimer p {
    font-size: 0.85rem;
    line-height: 1.7;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--color-gray-700);
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }

    .header .container {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }

    .logo {
        text-align: center;
    }

    .logo h1 {
        font-size: 1.8rem;
    }

    .logo .tagline {
        font-size: 0.8rem;
    }

    .nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav a {
        font-size: 0.85rem;
        padding: 5px 0;
    }

    .hero {
        padding: 50px 15px;
    }

    .hero h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 35px;
    }

    .productos-section {
        padding: 50px 15px;
    }

    .productos-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 100%;
    }

    .producto-card {
        margin: 0 auto;
        max-width: 380px;
    }

    .card-body {
        padding: 20px 18px;
    }

    .producto-img {
        width: 100%;
        height: 200px;
        object-fit: contain;
        margin-bottom: 15px;
    }

    .producto-card h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .producto-desc {
        font-size: 0.88rem;
        margin-bottom: 12px;
    }

    .producto-features li {
        font-size: 0.82rem;
        padding: 4px 0;
        padding-left: 20px;
    }

    .producto-price {
        padding: 10px 12px;
        margin-bottom: 15px;
    }

    .price-value {
        font-size: 1.3rem;
    }

    .card-footer {
        padding: 0 18px 18px;
    }

    .btn-product {
        padding: 12px 20px;
        font-size: 0.88rem;
    }

    .contacto-section {
        padding: 50px 15px;
    }

    .contacto-section .section-title {
        font-size: 1.6rem;
    }

    .contacto-section .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .btn-large {
        padding: 14px 30px;
        font-size: 1rem;
    }

    .footer {
        padding: 40px 15px 25px;
    }

    .footer-content {
        gap: 30px;
        margin-bottom: 30px;
    }

    .footer-brand h3 {
        font-size: 1.3rem;
    }

    .footer-disclaimer p {
        font-size: 0.8rem;
    }

    .footer-bottom {
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }

    .logo .tagline {
        font-size: 0.75rem;
    }

    .nav ul {
        gap: 12px;
    }

    .nav a {
        font-size: 0.8rem;
    }

    .hero {
        padding: 40px 12px;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.88rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .section-subtitle {
        font-size: 0.88rem;
    }

    .productos-section {
        padding: 40px 12px;
    }

    .producto-card {
        max-width: 100%;
    }

    .card-body {
        padding: 15px 15px;
    }

    .producto-img {
        height: 180px;
    }

    .producto-card h3 {
        font-size: 1.1rem;
    }

    .producto-desc {
        font-size: 0.82rem;
    }

    .producto-features li {
        font-size: 0.78rem;
        padding-left: 18px;
    }

    .price-value {
        font-size: 1.2rem;
    }

    .price-label {
        font-size: 0.78rem;
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .btn-product {
        padding: 11px 16px;
        font-size: 0.82rem;
    }

    .btn-large {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .floating-btn {
        width: 45px;
        height: 45px;
    }

    .floating-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 360px) {
    .logo h1 {
        font-size: 1.3rem;
    }

    .hero h2 {
        font-size: 1.3rem;
    }

    .hero p {
        font-size: 0.82rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .producto-card h3 {
        font-size: 1rem;
    }

    .producto-desc {
        font-size: 0.78rem;
    }

    .producto-features li {
        font-size: 0.72rem;
    }

    .price-value {
        font-size: 1.1rem;
    }
}

/* Botones Flotantes de Redes Sociales */
.floating-buttons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    text-decoration: none;
}

.floating-btn svg {
    width: 30px;
    height: 30px;
    color: var(--color-white);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.instagram-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.instagram-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.facebook-btn {
    background: linear-gradient(135deg, #1877F2 0%, #0d5ec9 100%);
}

.facebook-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.producto-card {
    animation: fadeInUp 0.6s ease forwards;
}

.productos-grid .producto-card:nth-child(1) {
    animation-delay: 0.1s;
}

.productos-grid .producto-card:nth-child(2) {
    animation-delay: 0.2s;
}

.productos-grid .producto-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Responsive para botones flotantes */
@media (max-width: 768px) {
    .floating-buttons {
        right: 10px;
        top: auto;
        bottom: 20px;
        transform: none;
        flex-direction: row;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
    }

    .floating-btn svg {
        width: 24px;
        height: 24px;
    }
}
