:root {
    --primary-dark: #0a2e3f;
    --primary: #146b6b;
    --primary-light: #2a9d8f;
    --accent: #e9c46a;
    --accent-dark: #f4a261;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --gray: #6c757d;
    --dark: #212529;
    --shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.02);
    --border-radius: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark);
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Top Bar */
.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(10, 46, 63, 0.95);
}

.top-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.contact-info {
    display: flex;
    gap: 24px;
    font-size: 14px;
}

.contact-info i {
    margin-right: 8px;
    color: var(--accent);
}

.cart-btn {
    background: var(--primary-light);
    border: none;
    padding: 10px 20px;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    font-size: 16px;
}

.cart-btn:hover {
    background: var(--primary);
    transform: scale(1.02);
}

.cart-count {
    background: var(--accent);
    color: var(--primary-dark);
    border-radius: 30px;
    padding: 2px 8px;
    font-weight: bold;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0a2e3f 0%, #146b6b 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 32px;
    opacity: 0.9;
}

.btn-hero {
    background: var(--accent);
    color: var(--primary-dark);
    padding: 12px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-hero:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

/* Sección productos */
.productos {
    padding: 60px 0 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.section-header p {
    color: var(--gray);
    max-width: 500px;
    margin: 0 auto 24px;
}

.search-wrapper {
    position: relative;
    max-width: 320px;
    margin: 0 auto;
}

.search-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.search-wrapper input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border-radius: 60px;
    border: 1px solid #ddd;
    font-size: 16px;
    transition: 0.2s;
}

.search-wrapper input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(42,157,143,0.2);
}

/* Grid de productos */
.fish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.fish-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: default;
}

.fish-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.2);
}

.fish-img {
    height: 260px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.fish-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.fish-card:hover .fish-img img {
    transform: scale(1.03);
}

.fish-img .no-image {
    font-size: 5rem;
    color: var(--primary-dark);
}

.fish-info {
    padding: 20px;
}

.fish-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.fish-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin: 8px 0;
}

.btn-add {
    background: var(--primary-light);
    border: none;
    padding: 12px;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
}

.btn-add:hover {
    background: var(--primary);
}

.btn-add:disabled {
    background: #adb5bd;
    cursor: not-allowed;
}

/* Modal mejorado */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    max-width: 750px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 28px;
    animation: modalFade 0.25s ease;
}

@keyframes modalFade {
    from { opacity: 0; transform: scale(0.96);}
    to { opacity: 1; transform: scale(1);}
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    font-size: 1.6rem;
    color: var(--primary-dark);
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray);
}

.cart-items {
    padding: 16px 24px;
    max-height: 300px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 0;
}

.cart-item-qty button {
    background: #e9ecef;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.1s;
}

.cart-total {
    text-align: right;
    font-size: 1.5rem;
    font-weight: 800;
    padding: 16px 24px;
    border-top: 1px solid #eee;
    color: var(--primary);
}

.checkout-form {
    padding: 16px 24px 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
}

label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid #ced4da;
    font-family: inherit;
    transition: 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(42,157,143,0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: 14px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: 0.2s;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.alert {
    padding: 12px;
    border-radius: 20px;
    margin-top: 16px;
    background: #e9f5ef;
    color: #146b6b;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: #e2e8f0;
    padding: 48px 0 20px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer h3, .footer h4 {
    color: white;
    margin-bottom: 16px;
}

.footer p, .footer ul {
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer ul {
    list-style: none;
}

.footer a {
    color: #cbd5e1;
    text-decoration: none;
}

.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.social-icons a {
    background: rgba(255,255,255,0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.social-icons a:hover {
    background: var(--accent);
    color: var(--primary-dark);
}

.copyright {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: var(--primary);
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .section-header h2 { font-size: 1.8rem; }
    .top-bar-flex { flex-direction: column; }
    .contact-info { flex-wrap: wrap; justify-content: center; }
    .fish-grid { gap: 20px; }
}