/* Variables globales */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --accent-color: #f39c12;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --danger-color: #e74c3c;
    --text-color: #34495e;
    --gray-color: #95a5a6;
    --light-gray: #f5f5f5;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --container-width: 1200px;
    --header-height: 80px;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Botones */
.btn-primary, 
.btn-secondary, 
.btn-tertiary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: #f0f8ff;
    transform: translateY(-2px);
}

.btn-tertiary {
    background-color: transparent;
    color: var(--text-color);
}

.btn-tertiary:hover {
    color: var(--primary-color);
}

/* Header y navegación */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav ul li a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

nav ul li a:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

.cart-link {
    display: flex;
    align-items: center;
    position: relative;
}

.cart-link svg {
    margin-right: 5px;
}

#cart-count {
    background-color: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -8px;
    right: -8px;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #3498db 0%, #9b59b6 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Ventajas section */
.advantages {
    padding: 80px 0;
    background-color: white;
}

.advantages h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.advantage-card {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.advantage-card .icon {
    width: 70px;
    height: 70px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
}

.advantage-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    padding: 20px;
}

.stat h4 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.cta {
    text-align: center;
}

/* About products section */
.about-products {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.about-products h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--dark-color);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.quality-info, .brand-story {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    margin-top: 40px;
    box-shadow: var(--shadow);
}

.quality-info h3, .brand-story h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.quality-info ul {
    padding-left: 20px;
}

.quality-info ul li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
}

.quality-info ul li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Curiosities section */
.curiosities {
    padding: 80px 0;
    background-color: var(--dark-color);
    color: white;
}

.curiosities h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: white;
}

.curiosities-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.curiosity-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.curiosity-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.curiosity-item .number {
    font-size: 5rem;
    position: absolute;
    top: -20px;
    right: 10px;
    opacity: 0.2;
    font-weight: 900;
    color: var(--accent-color);
}

.curiosity-item p {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
}

/* Products section */
.products {
    padding: 80px 0;
    background-color: white;
}

.products h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border: 8px solid transparent;
    box-shadow: 0 0 0 2px var(--primary-color);
    border-radius: 8px;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.price {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.description {
    margin-bottom: 20px;
    color: var(--gray-color);
}

.product-actions {
    display: flex;
    gap: 10px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.footer-logo h3 {
    margin-bottom: 10px;
}

.footer-links h4, .footer-legal h4, .footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4:after, .footer-legal h4:after, .footer-contact h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul li, .footer-legal ul li {
    margin-bottom: 10px;
}

.footer-links ul li a:hover, .footer-legal ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
}

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

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

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: var(--gray-color);
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(52, 73, 94, 0.95);
    color: white;
    padding: 15px;
    z-index: 1000;
    display: none;
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-content p {
    flex: 1;
    min-width: 300px;
}

.cookie-content p a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* Notification */
.notification {
    position: fixed;
    top: 100px;
    right: 30px;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transform: translateX(200%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateX(0);
}

/* Responsive design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    nav ul {
        gap: 15px;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .advantage-card .icon {
        width: 60px;
        height: 60px;
    }
    
    .stats {
        flex-direction: column;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header {
        height: auto;
        padding: 15px 0;
    }
    
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .advantages h2, .about-products h2, .curiosities h2, .products h2 {
        font-size: 2rem;
    }
}

/* Páginas individuales de productos */
.product-detail {
    padding: 80px 0;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.product-detail-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.product-detail-image img {
    width: 100%;
    height: auto;
    border: 10px solid transparent;
    box-shadow: 0 0 0 3px var(--primary-color);
    border-radius: 12px;
}

.product-detail-info h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.product-detail-price {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.product-detail-description {
    margin-bottom: 30px;
    line-height: 1.8;
}

.product-detail-features {
    margin-bottom: 30px;
}

.product-detail-features h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.product-detail-features ul {
    padding-left: 20px;
}

.product-detail-features ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.product-detail-features ul li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.product-detail-actions {
    display: flex;
    gap: 15px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.quantity-selector span {
    margin-right: 15px;
    font-weight: 600;
}

.quantity-selector input {
    width: 60px;
    padding: 10px;
    border: 1px solid var(--gray-color);
    border-radius: var(--border-radius);
    text-align: center;
}

.quantity-selector button {
    width: 40px;
    height: 40px;
    border: none;
    background-color: var(--light-gray);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.quantity-selector button:hover {
    background-color: var(--gray-color);
    color: white;
}

@media (max-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1fr;
    }
}

/* Cart page */
.cart-page {
    padding: 80px 0;
}

.cart-page h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.cart-empty {
    text-align: center;
    padding: 50px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.cart-empty p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cart-items {
    margin-bottom: 30px;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 3fr 1fr 1fr 50px;
    align-items: center;
    gap: 20px;
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

.cart-item-image img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.cart-item-name {
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
}

.cart-item-quantity button {
    width: 30px;
    height: 30px;
    border: none;
    background-color: var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
}

.cart-item-quantity button:hover {
    background-color: var(--gray-color);
    color: white;
}

.cart-item-quantity input {
    width: 40px;
    padding: 5px;
    text-align: center;
    border: 1px solid var(--gray-color);
}

.cart-item-price {
    font-weight: 600;
    color: var(--primary-color);
}

.cart-item-remove button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: var(--danger-color);
    font-size: 1.2rem;
}

.cart-summary {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.cart-actions {
    display: flex;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 80px 2fr 1fr;
        grid-template-rows: auto auto;
    }
    
    .cart-item-image {
        grid-row: 1 / 3;
    }
    
    .cart-item-price {
        text-align: right;
    }
    
    .cart-item-remove {
        grid-column: 3;
        text-align: right;
    }
}

/* Checkout page */
.checkout-page {
    padding: 80px 0;
}

.checkout-page h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.checkout-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.checkout-form {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkout-summary {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.checkout-summary h3 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.checkout-items {
    margin-bottom: 20px;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.checkout-total {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
}

@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
    
    .checkout-summary {
        position: static;
        order: -1;
    }
}

/* Success page */
.success-page {
    padding: 100px 0;
    text-align: center;
}

.success-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: white;
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.success-icon {
    width: 100px;
    height: 100px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 30px;
    color: white;
    font-size: 3rem;
}

.success-message h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.success-message p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Contact page */
.contact-page {
    padding: 80px 0;
}

.contact-page h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.contact-detail {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    color: var(--primary-color);
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.map {
    margin-top: 50px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 400px;
}

.map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* About page */
.about-page {
    padding: 80px 0;
}

.about-page h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.about-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.about-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
}

.about-story {
    margin-bottom: 50px;
}

.about-story h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.story-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.story-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.story-image img {
    width: 100%;
    height: auto;
    border: 10px solid transparent;
    box-shadow: 0 0 0 3px var(--primary-color);
    border-radius: 12px;
}

.story-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.team-section {
    margin-bottom: 50px;
}

.team-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-member img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.team-info {
    padding: 20px;
}

.team-info h3 {
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.team-info p:first-of-type {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.team-social a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--light-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.team-social a:hover {
    background-color: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .story-container {
        grid-template-columns: 1fr;
    }
}
