* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FF6B6B;
    --secondary: #4ECDC4;
    --accent: #FFE66D;
    --dark: #2C3E50;
    --light: #F7F9FC;
    --success: #51CF66;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: white;
    color: var(--dark);
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.logo::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3), transparent);
    border-radius: 50%;
    animation: logoPulseGlow 2s ease-in-out infinite;
    z-index: -1;
}

.logo-img {
    max-width: 180px;
    height: auto;
    animation: logoAttention 4s ease-in-out infinite;
    transition: all 0.4s;
    filter: drop-shadow(0 4px 12px rgba(255, 107, 107, 0.3));
}

.logo-img:hover {
    animation: logoExciting 0.8s ease-in-out;
    filter: drop-shadow(0 10px 25px rgba(102, 126, 234, 0.6)) drop-shadow(0 0 20px rgba(255, 107, 107, 0.4));
}

@keyframes logoAttention {

    0%,
    100% {
        transform: translateY(0px) scale(1) rotate(0deg);
    }

    25% {
        transform: translateY(-15px) scale(1.08) rotate(-3deg);
    }

    50% {
        transform: translateY(0px) scale(1.05) rotate(0deg);
    }

    75% {
        transform: translateY(-8px) scale(1.08) rotate(3deg);
    }
}

@keyframes logoExciting {
    0% {
        transform: rotate(0deg) scale(1);
    }

    15% {
        transform: rotate(-15deg) scale(1.15);
    }

    30% {
        transform: rotate(15deg) scale(1.2);
    }

    45% {
        transform: rotate(-10deg) scale(1.15);
    }

    60% {
        transform: rotate(10deg) scale(1.2);
    }

    75% {
        transform: rotate(-5deg) scale(1.1);
    }

    100% {
        transform: rotate(0deg) scale(1);
    }
}

@keyframes logoPulseGlow {

    0%,
    100% {
        transform: scale(0.8);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.6;
    }
}

nav {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    padding: 8px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.95rem;
}

.nav-link i {
    font-size: 0.9rem;
    color: var(--primary);
}

.nav-link:hover {
    background: var(--light);
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-link:hover i {
    color: var(--secondary);
}

.admin-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.4rem;
    animation: fadeInUp 1s;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s;
}

.btn-hero {
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary-hero {
    background: white;
    color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary-hero {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.btn-secondary-hero:hover {
    background: white;
    color: var(--secondary);
    transform: translateY(-3px);
}

.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 3rem;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

.icon-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.icon-2 {
    top: 60%;
    left: 15%;
    animation-delay: 1s;
}

.icon-3 {
    top: 30%;
    right: 15%;
    animation-delay: 2s;
}

.icon-4 {
    top: 70%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Features Section */
.features-section {
    padding: 60px 20px;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    transition: all 0.3s;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(118, 75, 162, 0.5);
}

.feature-item h3 {
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.feature-item p {
    color: #666;
}

/* Quiénes Somos Section */
.quienes-somos-section {
    padding: 80px 20px;
    background: white;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    margin-top: -10px;
    margin-bottom: 50px;
}

.mision-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.mv-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 40px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.mv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.mision-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.vision-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.mv-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.mv-card h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.mv-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.95;
}

.mv-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -100px;
    right: -100px;
}

.valores-section {
    background: var(--light);
    padding: 50px;
    border-radius: 20px;
}

.valores-title {
    text-align: center;
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 40px;
}

.valores-title i {
    color: var(--accent);
    margin-right: 10px;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.valor-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 15px;
    transition: all 0.3s;
}

.valor-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.valor-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #ff9a56 0%, #ff6a00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 5px 15px rgba(255, 154, 86, 0.4);
    transition: all 0.3s;
}

.valor-item:hover .valor-icon {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 8px 25px rgba(255, 106, 0, 0.6);
    background: linear-gradient(135deg, #ff6a00 0%, #ff9a56 100%);
}

.valor-item h4 {
    color: var(--dark);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.valor-item p {
    color: #666;
    font-size: 0.95rem;
}

/* Productos Section */
.productos-section {
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--dark);
}

.filtros {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filtro-btn {
    padding: 10px 25px;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.filtro-btn:hover,
.filtro-btn.active {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.producto-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    animation: fadeIn 0.5s;
}

.producto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.producto-imagen {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.producto-info {
    padding: 20px;
}

.producto-categoria {
    display: inline-block;
    background: var(--accent);
    color: var(--dark);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.producto-nombre {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.producto-descripcion {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.producto-precio {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 15px;
}

.whatsapp-btn {
    width: 100%;
    background: #25D366;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: scale(1.05);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 20px 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.contact-info li {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: var(--accent);
    width: 20px;
}

.social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.3rem;
    transition: all 0.3s;
}

.social a:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p {
    margin: 5px 0;
}

.footer-bottom i {
    color: var(--primary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

.modal-content {
    background: white;
    margin: 50px auto;
    padding: 30px;
    border-radius: 15px;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideDown 0.3s;
    position: relative;
}

.modal-small {
    max-width: 400px;
}

.close,
.close-login {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    z-index: 10;
}

.close:hover,
.close-login:hover {
    color: var(--primary);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logout-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: var(--dark);
    transform: translateY(-2px);
}

.error-message {
    color: var(--primary);
    background: rgba(255, 107, 107, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    display: none;
    font-weight: 600;
}

.error-message.show {
    display: block;
}

.login-info {
    margin-top: 20px;
    padding: 15px;
    background: var(--light);
    border-radius: 8px;
    text-align: center;
}

.login-info small {
    color: #666;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: #eee;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group input[type="file"] {
    padding: 8px;
    margin-top: 10px;
}

.btn-primary {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.lista-productos {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.producto-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--light);
    border-radius: 8px;
    align-items: center;
}

.producto-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.producto-item-info {
    flex: 1;
}

.producto-item-info h4 {
    margin-bottom: 5px;
}

.producto-item-actions {
    display: flex;
    gap: 10px;
}

.btn-edit,
.btn-delete {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-edit {
    background: var(--secondary);
    color: white;
}

.btn-delete {
    background: var(--primary);
    color: white;
}

.btn-edit:hover,
.btn-delete:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .mision-vision-grid {
        grid-template-columns: 1fr;
    }

    .valores-grid {
        grid-template-columns: 1fr;
    }

    .valores-section {
        padding: 30px 20px;
    }

    .productos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .modal-content {
        margin: 20px;
        padding: 20px;
    }

    .admin-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    nav {
        width: 100%;
        justify-content: center;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 6px 10px;
    }

    .nav-link i {
        display: none;
    }

    .producto-item {
        flex-direction: column;
        text-align: center;
    }

    .logo-img {
        max-width: 140px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-title {
        font-size: 2rem;
    }
}