/* 
  Estilos generales para el sitio RoboFuturo 
  Tema: El Futuro de la Robótica
*/

/* ---------- Variables y Reset ---------- */
:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #2c3e50;
    --accent-color: #1abc9c;
    --text-color: #333;
    --light-text: #f8f9fa;
    --light-bg: #f8f9fa;
    --dark-bg: #34495e;
    --border-color: #ddd;
    --success-color: #2ecc71;
    --error-color: #e74c3c;
    --warning-color: #f39c12;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 6px;
    --container-max-width: 1200px;
    --header-height: 80px;
    --footer-bg: #2c3e50;
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

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

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

section {
    padding: 60px 0;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--secondary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    text-align: center;
}

h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 20px;
}

ul, ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

/* ---------- Botones ---------- */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--border-radius);
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
    font-size: 1rem;
}

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

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

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

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

.btn-secondary:hover {
    background-color: #1a2530;
}

.btn-large {
    padding: 14px 30px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ---------- 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: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

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

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

.logo img {
    height: 100%;
    width: auto;
}

header h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--primary-color);
    font-weight: 600;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--secondary-color);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

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

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

nav ul li a.active {
    color: var(--primary-color);
}

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

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

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

/* ---------- Hero Section ---------- */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('images/1.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 100px 0;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* ---------- Advantages Section ---------- */
.advantages {
    background-color: white;
}

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

.advantage-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background-color: var(--light-bg);
}

.advantage-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

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

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

.statistics {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding: 30px;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    color: white;
}

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

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

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

/* ---------- Product Info Section ---------- */
.product-info {
    background-color: var(--light-bg);
    padding: 80px 0;
}

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

.product-info p {
    max-width: 900px;
    margin: 0 auto 25px;
    text-align: justify;
}

.certifications, .history {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    margin-top: 40px;
    box-shadow: var(--box-shadow);
}

.certifications h3, .history h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* ---------- Products Section ---------- */
.products {
    background-color: white;
}

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

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

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

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

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

.product-card .price {
    font-weight: 600;
    color: var(--primary-color);
    padding: 0 15px;
    font-size: 1.2rem;
}

.product-card p {
    padding: 0 15px 15px;
    font-size: 0.95rem;
}

.product-card .btn {
    margin: 0 15px 15px;
}

/* ---------- Product Detail ---------- */
.product-detail {
    background-color: var(--light-bg);
}

.breadcrumb {
    margin-bottom: 30px;
    font-size: 0.9rem;
}

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

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

.product-info h1 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.product-meta {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.product-rating {
    margin: 10px 0;
    color: var(--warning-color);
}

.product-rating .review-count {
    color: var(--text-color);
    font-size: 0.9rem;
}

.availability {
    font-size: 0.9rem;
}

.availability span {
    color: var(--success-color);
    font-weight: 500;
}

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

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

.quantity-selector {
    margin-bottom: 20px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    width: fit-content;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.quantity-controls button {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
}

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

.buttons {
    display: flex;
    gap: 15px;
}

.add-to-cart {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

.tab-btn {
    padding: 15px 30px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
}

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

.tab-panel {
    display: none;
}

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

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th, .specs-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.specs-table th {
    background-color: var(--light-bg);
    font-weight: 600;
}

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

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.reviewer-name {
    font-weight: 600;
}

.review-date {
    color: #777;
    font-size: 0.9rem;
}

.related-products h2 {
    margin-bottom: 40px;
}

/* Estilos específicos para product5.html */
.medical-note {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(26, 188, 156, 0.1);
    border-left: 4px solid var(--accent-color);
    border-radius: var(--border-radius);
}

.application {
    margin-bottom: 25px;
}

.application h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.medical-content h4 {
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 15px;
}

.testimonial {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    font-style: italic;
}

.testimonial cite {
    display: block;
    margin-top: 15px;
    font-style: normal;
    font-weight: 600;
    text-align: right;
}

.medical-certification {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
}

/* ---------- About Page ---------- */
.about-hero {
    background-color: white;
    text-align: center;
    padding: 80px 0;
}

.about-hero p {
    max-width: 800px;
    margin: 0 auto 20px;
}

.about-values {
    background-color: var(--light-bg);
}

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

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

.value-item:hover {
    transform: translateY(-10px);
}

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

.team-section {
    background-color: white;
}

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

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

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

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

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

.team-member h3 {
    margin: 20px 0 5px;
}

.team-member p {
    padding: 0 20px;
    margin-bottom: 15px;
}

.team-member p:nth-of-type(1) {
    color: var(--primary-color);
    font-weight: 500;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

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

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

.achievements {
    background-color: var(--secondary-color);
    color: white;
}

.achievements h2 {
    color: white;
}

.achievements h2:after {
    background-color: white;
}

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

.achievement-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.testimonials {
    background-color: var(--light-bg);
}

.testimonial-slider {
    max-width: 900px;
    margin: 0 auto;
}

.testimonial {
    padding: 30px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.testimonial p {
    font-style: italic;
    font-size: 1.1rem;
    position: relative;
    padding: 0 20px;
}

.testimonial p:before, .testimonial p:after {
    content: '"';
    font-size: 2rem;
    color: var(--primary-color);
    position: absolute;
}

.testimonial p:before {
    left: 0;
    top: -10px;
}

.testimonial p:after {
    right: 0;
    bottom: -10px;
}

.testimonial cite {
    display: block;
    text-align: right;
    font-style: normal;
    margin-top: 20px;
    font-weight: 500;
}

/* ---------- Contact Page ---------- */
.contact-section {
    background-color: white;
}

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

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

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

.info-content h3 {
    margin-bottom: 10px;
}

.social-contact {
    margin-top: 20px;
}

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

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

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

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

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

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

.form-group.full-width {
    grid-column: 1 / 3;
}

.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: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-container input {
    width: auto;
    margin-top: 5px;
}

.map-section {
    background-color: var(--light-bg);
}

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

.map-placeholder {
    height: 100%;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-content {
    text-align: center;
}

.map-content svg {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.faq-section {
    background-color: white;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: var(--light-bg);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
}

.toggle-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

/* ---------- Cart Page ---------- */
.cart-section {
    min-height: 500px;
}

.cart-empty {
    text-align: center;
    padding: 50px 0;
}

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

.cart-empty p {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.cart-empty-message {
    color: #777;
    margin-bottom: 30px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.cart-table th, .cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cart-table th {
    font-weight: 600;
    background-color: var(--light-bg);
}

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

.cart-item-details {
    display: flex;
    gap: 15px;
    align-items: center;
}

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

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

.cart-quantity button {
    background: none;
    border: 1px solid var(--border-color);
    width: 30px;
    height: 30px;
    cursor: pointer;
    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 {
    background: none;
    border: none;
    color: var(--error-color);
    cursor: pointer;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.cart-summary {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    min-width: 300px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-row.total {
    font-weight: 600;
    font-size: 1.2rem;
    border-bottom: none;
    color: var(--primary-color);
}

.cart-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.recommended-section {
    background-color: var(--light-bg);
}

/* ---------- Checkout Page ---------- */
.checkout-section {
    background-color: white;
    min-height: 600px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 50px;
}

.checkout-form-container {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: var(--border-radius);
}

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

.order-summary {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    position: sticky;
    top: 100px;
}

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

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

.item-info h4 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.order-totals {
    margin-bottom: 30px;
}

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

.final-total {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary-color);
    border-bottom: none;
    padding-top: 20px;
}

.secure-checkout {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding: 15px;
    background-color: rgba(46, 204, 113, 0.1);
    border-radius: var(--border-radius);
}

.secure-icon {
    color: var(--success-color);
}

.secure-checkout p {
    font-size: 0.9rem;
    margin: 0;
}

/* ---------- Success Page ---------- */
.success-section {
    background-color: white;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.success-message {
    background-color: var(--light-bg);
    padding: 50px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--box-shadow);
}

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

.success-message h2 {
    color: var(--success-color);
}

.next-steps {
    text-align: left;
    margin: 30px 0;
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
}

.success-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

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

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

.footer-column h3 {
    color: white;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.newsletter-form button {
    padding: 10px 15px;
    border: none;
    background-color: var(--primary-color);
    color: white;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--primary-dark);
}

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

/* ---------- Cookie Banner ---------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--secondary-color);
    color: white;
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
    display: none;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

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

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

/* ---------- Typewriter Effect ---------- */
.typewriter {
    overflow: hidden;
    border-right: .15em solid var(--primary-color);
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
    animation: 
        typing 3.5s steps(40, end),
        blink-caret .75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color) }
}

/* ---------- Tooltips ---------- */
[title] {
    position: relative;
    cursor: help;
}

[title]:hover::before {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 0.8rem;
    z-index: 100;
}

[title]:hover::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--secondary-color);
    margin-bottom: -6px;
    z-index: 100;
}

/* ---------- Responsive Design ---------- */
@media (max-width: 991px) {
    .product-detail-grid,
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .advantage-item, .team-member {
        padding: 20px;
    }
    
    .statistics {
        padding: 20px;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .cart-summary {
        width: 100%;
    }
}

@media (max-width: 768px) {
    header {
        height: auto;
        padding: 15px 0;
        position: relative;
    }
    
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .product-tabs .tab-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .info-item {
        flex-direction: column;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: 1;
    }
    
    .typewriter {
        white-space: normal;
        border-right: none;
        animation: none;
    }
}

@media (max-width: 576px) {
    .buttons {
        flex-direction: column;
    }
    
    .cart-table, .cart-table thead, .cart-table tbody, .cart-table th, .cart-table td, .cart-table tr {
        display: block;
    }
    
    .cart-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .cart-table tr {
        border: 1px solid var(--border-color);
        margin-bottom: 15px;
        border-radius: var(--border-radius);
    }
    
    .cart-table td {
        border: none;
        border-bottom: 1px solid var(--border-color);
        position: relative;
        padding-left: 50%;
    }
    
    .cart-table td:before {
        position: absolute;
        top: 15px;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
    }
    
    .cart-table td:nth-of-type(1):before { content: "Producto"; }
    .cart-table td:nth-of-type(2):before { content: "Precio"; }
    .cart-table td:nth-of-type(3):before { content: "Cantidad"; }
    .cart-table td:nth-of-type(4):before { content: "Total"; }
    .cart-table td:nth-of-type(5):before { content: "Acciones"; }
    
    .cart-item-details {
        flex-direction: column;
        align-items: flex-start;
    }
}
