/* Estilos Generales */
:root {
    --primary-color: #4d8d7a;
    --primary-dark: #3b6a5d;
    --primary-light: #d6ecf0;
    --secondary-color: #fbc280;
    --text-color: #333333;
    --text-light: #777777;
    --background-color: #ffffff;
    --background-alt: #f9f9f9;
    --border-color: #e5e5e5;
    --success-color: #4CAF50;
    --error-color: #f44336;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

ul {
    list-style: none;
}

button, .btn-primary, .btn-secondary {
    cursor: pointer;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

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

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

.btn-secondary {
    background-color: var(--background-alt);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

.btn-large {
    padding: 12px 24px;
    font-size: 1.1rem;
}

/* Header y Navegación */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 50px;
    width: auto;
}

.menu {
    display: flex;
    gap: 20px;
}

.menu li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
}

.menu li a:hover, .menu li a.active {
    color: var(--primary-color);
    background-color: var(--primary-light);
}

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

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Hero Section */
.hero {
    background-color: var(--primary-light);
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 40px;
}

.hero h1 {
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Ventajas Section */
.advantages {
    padding: 60px 0;
    background-color: var(--background-color);
}

.advantages h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

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

.advantage-card:hover {
    transform: translateY(-5px);
}

.advantage-card .icon {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.advantage-card h3 {
    margin-bottom: 15px;
}

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

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

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

.cta {
    text-align: center;
    margin-top: 40px;
}

.cta h3 {
    margin-bottom: 20px;
}

/* About Products Section */
.about-products {
    padding: 60px 0;
    background-color: var(--background-alt);
}

.about-products h2 {
    text-align: center;
    margin-bottom: 30px;
}

.about-products p {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}

.quality-block, .tech-block, .guarantee-block, .why-choose, .history {
    margin-top: 30px;
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--box-shadow);
}

.guarantee-block ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.guarantee-block li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

.guarantee-block li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Products Section */
.products {
    padding: 60px 0;
}

.products h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

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

.product-card:hover {
    transform: translateY(-5px);
}

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

.product-card h3 {
    padding: 15px 20px 5px;
    font-size: 1.2rem;
}

.product-card .price {
    color: var(--primary-color);
    font-weight: bold;
    padding: 0 20px;
    margin-bottom: 10px;
}

.product-card .description {
    padding: 0 20px;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
    height: 60px;
    overflow: hidden;
}

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

.product-actions a, .product-actions button {
    flex: 1;
    text-align: center;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 60px 0 30px;
}

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

.footer-column h3 {
    color: white;
    margin-bottom: 20px;
    position: relative;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
}

.footer-column ul li a:hover {
    color: white;
}

.footer-column address {
    font-style: normal;
}

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

.footer-column address a {
    color: #ccc;
}

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

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

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(51, 51, 51, 0.95);
    color: white;
    padding: 15px 20px;
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.cookie-content {
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.cookie-policy {
    font-size: 0.9rem;
}

.cookie-policy a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Notificación */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: var(--box-shadow);
    z-index: 1000;
    display: none;
    animation: fadeIn 0.3s, fadeOut 0.3s 2.7s;
}

.notification.success {
    background-color: var(--success-color);
}

.notification.error {
    background-color: var(--error-color);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

/* Página de Producto */
.product-details {
    padding: 40px 0;
}

.breadcrumb {
    margin-bottom: 30px;
    color: var(--text-light);
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.product-image {
    border-radius: 8px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: auto;
}

.product-info h1 {
    margin-bottom: 15px;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.stars {
    display: flex;
    color: #ffc107;
    margin-right: 10px;
}

.product-price {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.price {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 15px;
}

.availability {
    background-color: #e8f5e9;
    color: #43a047;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.product-description ul {
    padding-left: 20px;
    margin-bottom: 25px;
}

.product-description li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.product-description li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.product-actions {
    margin: 30px 0;
}

.quantity {
    margin-bottom: 20px;
}

.quantity label {
    display: block;
    margin-bottom: 8px;
}

.quantity-control {
    display: flex;
    align-items: center;
    max-width: 150px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-alt);
    border: 1px solid var(--border-color);
    font-size: 1.2rem;
}

.quantity input {
    width: 70px;
    height: 40px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-left: none;
    border-right: none;
}

.product-meta {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-light);
}

.product-meta p {
    margin-bottom: 8px;
}

.product-tabs {
    margin-bottom: 60px;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.review {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.review-header {
    margin-bottom: 10px;
}

.review-stars {
    display: flex;
    color: #ffc107;
    margin-bottom: 5px;
}

.reviewer {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 10px;
}

.related-products h2 {
    text-align: center;
    margin-bottom: 30px;
}

/* About Page */
.about-hero {
    background-color: var(--primary-light);
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 40px;
}

.about-story, .team-section, .testimonials {
    padding: 60px 0;
}

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

.mission-statement {
    background-color: var(--primary-light);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    text-align: center;
}

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

.value-card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--box-shadow);
    text-align: center;
}

.value-icon {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.team-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

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

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

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

.team-card h3 {
    margin-top: 20px;
    margin-bottom: 5px;
}

.team-card p {
    padding: 0 20px;
}

.team-card p:nth-of-type(1) {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.team-card .social-icons {
    justify-content: center;
    margin-bottom: 20px;
}

.team-card .social-icons a {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.testimonials {
    background-color: var(--background-alt);
    text-align: center;
}

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

.testimonial-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    text-align: left;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 0;
}

.testimonial-text {
    position: relative;
    z-index: 1;
}

.testimonial-author {
    margin-top: 20px;
}

.cta-section {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.cta-section h2, .cta-section p {
    color: white;
}

.cta-section .btn-primary {
    background-color: white;
    color: var(--primary-color);
    margin-top: 20px;
}

.cta-section .btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

/* Contact Page */
.contact-hero {
    background-color: var(--primary-light);
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 40px;
}

.contact-content {
    padding: 60px 0;
}

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

.contact-method {
    display: flex;
    margin-bottom: 30px;
}

.contact-icon {
    margin-right: 20px;
    color: var(--primary-color);
}

.contact-details h3 {
    margin-bottom: 10px;
}

.social-contact h3 {
    margin-top: 40px;
}

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

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group.full-width {
    grid-column: span 2;
}

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

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

.faq-section {
    padding: 60px 0;
    background-color: var(--background-alt);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

.faq-item {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--box-shadow);
}

.faq-item h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Cart Page */
.cart-section {
    padding: 60px 0;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart svg {
    color: var(--text-light);
    margin-bottom: 20px;
}

.empty-cart h2 {
    margin-bottom: 15px;
}

.empty-cart p {
    margin-bottom: 30px;
    color: var(--text-light);
}

.cart-header {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 0.5fr;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
}

.cart-item {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 0.5fr;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.cart-product img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 20px;
    border-radius: 4px;
}

.cart-product-info h3 {
    margin-bottom: 5px;
}

.cart-quantity {
    display: flex;
    align-items: center;
    max-width: 120px;
}

.cart-quantity button {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-alt);
    border: 1px solid var(--border-color);
    font-size: 1rem;
}

.cart-quantity input {
    width: 40px;
    height: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-left: none;
    border-right: none;
}

.cart-remove {
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.cart-remove:hover {
    color: var(--error-color);
}

.cart-summary {
    margin-top: 40px;
    display: flex;
    justify-content: flex-end;
}

.cart-totals {
    width: 100%;
    max-width: 400px;
}

.subtotal, .shipping, .total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.total {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.recommended-products {
    padding: 60px 0;
    background-color: var(--background-alt);
}

.recommended-products h2 {
    text-align: center;
    margin-bottom: 40px;
}

/* Checkout Page */
.checkout-section {
    padding: 60px 0;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

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

.checkout-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.order-summary {
    background-color: var(--background-alt);
    border-radius: 8px;
    padding: 30px;
    align-self: start;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.checkout-item-name {
    display: flex;
    align-items: center;
}

.checkout-item-quantity {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.8rem;
    margin-left: 10px;
}

.order-totals {
    margin-top: 20px;
}

.secure-checkout {
    margin-top: 30px;
    text-align: center;
}

.secure-checkout p {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.secure-checkout svg {
    margin-right: 8px;
    color: var(--success-color);
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    color: var(--text-light);
}

/* Success Page */
.success-section {
    padding: 80px 0;
    text-align: center;
}

.success-content {
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    color: var(--success-color);
    margin-bottom: 30px;
}

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

.success-info {
    background-color: var(--primary-light);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.success-actions {
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .menu {
        gap: 10px;
    }
    
    .menu li a {
        padding: 5px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 30px;
    }
    
    .product-container {
        grid-template-columns: 1fr;
    }
    
    .contact-grid, .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form, .checkout-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .cart-header {
        display: none;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        grid-template-areas:
            "product"
            "price"
            "quantity"
            "total"
            "remove";
        padding: 15px;
        margin-bottom: 15px;
        background-color: white;
        border-radius: 8px;
        box-shadow: var(--box-shadow);
    }
    
    .cart-product {
        grid-area: product;
        margin-bottom: 15px;
    }
    
    .cart-price {
        grid-area: price;
        margin-bottom: 10px;
    }
    
    .cart-price:before {
        content: "Precio: ";
        font-weight: 500;
    }
    
    .cart-quantity-column {
        grid-area: quantity;
        margin-bottom: 10px;
    }
    
    .cart-total {
        grid-area: total;
        margin-bottom: 10px;
    }
    
    .cart-total:before {
        content: "Total: ";
        font-weight: 500;
    }
    
    .cart-remove {
        grid-area: remove;
        text-align: right;
    }
    
    .cart-summary {
        flex-direction: column;
    }
    
    .cart-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .cart-actions a {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    header .container {
        flex-direction: column;
        padding: 15px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .menu {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero {
        padding: 60px 15px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}
