/* ===== VARIABLES GLOBALES ===== */
:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --success: #27ae60;
    --warning: #f39c12;
    --transition: all 0.3s ease;
    --shadow: 0 3px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 15px rgba(0,0,0,0.15);
    --border-radius: 12px;
}

/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: white;
    color: var(--dark);
    line-height: 1.5;
    padding-top: 70px;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    flex: 1 0 auto !important;
}

/* ===== COMPONENTES BASE ===== */

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

.mini-gif {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.6rem;
    text-align: center;
    padding: 5px;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.mini-gif img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Navegación */
nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

nav li {
    margin: 0;
}

nav a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 20px;
    transition: var(--transition);
    font-size: 0.9rem;
    white-space: nowrap;
    position: relative;
}

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

nav a:hover, nav a.active {
    color: var(--secondary);
}

nav a:hover:before, nav a.active:before {
    width: 100%;
}

/* Icono Carrito */
.cart-icon {
    position: relative;
    cursor: pointer;
    background: var(--light);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.cart-icon:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    box-shadow: var(--shadow);
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    font-size: 0.95rem;
}

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

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

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

.btn-chat {
    background-color: var(--success);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-chat:hover {
    background-color: #219653;
}

.btn-facebook {
    background-color: #3b5998;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-facebook:hover {
    background-color: #2d4373;
}

/* Botón Atrás Flotante */
.back-button-fixed {
    display: none;
    position: fixed;
    top: 80px;
    left: 20px;
    z-index: 999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 18px;
    border-radius: 25px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.1);
}

.back-button-fixed.show {
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideIn 0.3s ease;
}

.back-button-fixed:hover {
    background: var(--primary);
    color: white;
    transform: translateX(-3px);
}

.back-button {
    display: inline-flex;
    align-items: center;
    margin-bottom: 25px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 18px;
    border: 2px solid var(--primary);
    border-radius: 25px;
    transition: var(--transition);
}

.back-button:hover {
    background-color: var(--primary);
    color: white;
    transform: translateX(-3px);
}

.back-button i {
    margin-right: 8px;
}

/* ===== SECCIONES ===== */

/* Hero Banner */
.hero-banner {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)), url('imagenes/header/portadaprincipal.webp') center/cover no-repeat;
    color: white;
    padding: 60px 0 40px;
    position: relative;
    margin-top: -70px;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    width: 100%;
}

.hero-text-content {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease;
}

.hero-gif-content {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.8s ease 0.3s both;
}

.main-gif {
    max-width: 100%;
    animation: float 3s ease-in-out infinite;
}

.main-gif img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: opacity 0.5s ease;
}

.hero-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

/* Secciones Principales */
.section {
    padding: 60px 0;
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.detail-page {
    display: none;
    padding: 50px 0;
    min-height: calc(100vh - 200px) !important;
    position: relative !important;
    padding-bottom: 100px !important;
}

.detail-page.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--primary);
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

/* Grids de Productos y Servicios */
.products-grid, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.product-card, .service-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    top: 0;
}

.product-card:hover, .service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-image {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark);
    font-weight: 600;
}

.card-description {
    margin-bottom: 20px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Action Buttons */
.action-buttons-top {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0 10px 0;
    align-items: center;
    justify-content: space-between;
}

.action-buttons-top .btn {
    height: 45px !important;
    min-height: 45px !important;
    max-height: 45px !important;
    padding: 10px 18px !important;
    line-height: 1.2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1;
    min-width: 140px;
    max-width: 200px;
    overflow: hidden !important;
    white-space: nowrap !important;
    font-size: 0.9rem;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* ===== GALERÍA DE DETALLES PRODUCTOS/SERVICIOS ===== */
.detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.detail-main-image {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    position: relative;
    background-color: #f5f5f5;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.detail-main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-secondary-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.detail-secondary-image {
    height: 0;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    position: relative;
    background-color: #f5f5f5;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
}

.detail-secondary-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.detail-secondary-image:hover img {
    transform: scale(1.05);
}

.detail-info {
    margin-bottom: 30px;
    line-height: 1.6;
}

.detail-page .detail-price {
    font-size: 2rem;
    font-weight: bold;
    margin: 25px 0;
    color: var(--secondary);
    text-align: left !important;
    width: 100%;
}

/* ===== COMPONENTES DE DETALLES ===== */

/* Selectores de Ubicación */
.location-selector {
    margin: 25px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.select-group {
    flex: 1;
    min-width: 200px;
}

.select-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

.select-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition);
    background: white;
}

.select-group select:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Estado de Envío */
.shipping-status {
    margin: 20px 0;
    font-weight: 500;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.shipping-status.available {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.shipping-status.unavailable {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
}

/* Selector de Medidas */
.measurement-selector {
    margin: 25px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    border: 1px solid #eee;
}

.measurement-title {
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--accent);
    transition: var(--transition);
}

.measurement-title.valid {
    color: var(--success);
}

.measurement-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.measurement-option {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: white;
}

.measurement-option:hover {
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.measurement-option.selected {
    border-color: var(--success);
    background-color: rgba(39, 174, 96, 0.1);
    transform: translateY(-2px);
}

.measurement-option .size {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 5px;
}

.measurement-option .dimensions {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

.measurement-option .price {
    color: var(--secondary);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Calculadora de Banner */
.banner-calculator {
    margin: 25px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    border: 1px solid #eee;
}

.calculator-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 20px;
}

.calculator-input {
    display: flex;
    flex-direction: column;
}

.calculator-input label {
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.calculator-input input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.calculator-input input:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.calculator-result {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-top: 15px;
}

.calculator-result .area {
    font-weight: 500;
    margin-bottom: 8px;
}

.calculator-result .price {
    font-weight: bold;
    color: var(--secondary);
    font-size: 1.2rem;
}

/* Precio de Detalle */
.detail-price {
    font-size: 2rem;
    font-weight: bold;
    margin: 25px 0;
    color: var(--secondary);
    text-align: center;
}

/* Botones de Acción en Detalles */
.detail-page .action-buttons-top {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 30px 0;
    justify-content: center;
}

.detail-page .action-buttons-top .btn {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

/* ===== SLIDER HERO CATÁLOGO ===== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-top: -70px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: translateX(100%);
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
}

.slide.prev {
    transform: translateX(-100%);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Flechas del slider */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.arrow-prev {
    left: 20px;
}

.arrow-next {
    right: 20px;
}

/* Puntos de navegación */
.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* ===== PÁGINAS INTERNAS AVANZADAS CATÁLOGO ===== */
.detail-hero {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 40px;
    border: 2px solid transparent;
    transition: var(--transition);
}

.detail-hero:hover {
    border-color: var(--secondary);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.detail-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px;
    backdrop-filter: blur(5px);
}

.detail-hero-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.detail-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Contenedores de galería */
.gallery-section {
    margin: 50px 0;
}

.gallery-title {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.gallery-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary);
}

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

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background: white;
    border: 1px solid #e0e0e0;
}

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

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 15px;
    background: white;
}

.gallery-caption h4 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.gallery-caption p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Bloques de texto responsive */
.text-section {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary);
    transition: var(--transition);
}

.text-section:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
}

.text-title {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.text-content {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

.text-content p {
    margin-bottom: 15px;
}

/* Grid responsivo para bloques de texto */
.text-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

/* Call to Action */
.cta-section {
    text-align: center;
    padding: 50px 0;
    background: linear-gradient(135deg, var(--primary) 0%, #34495e 100%);
    color: white;
    border-radius: var(--border-radius);
    margin: 50px 0;
}

.cta-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--success);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.cta-button:hover {
    background: #219653;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(33, 150, 83, 0.4);
}
/* ===== FORMULARIO DE CONTACTO ===== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* ===== TÉRMINOS Y CONDICIONES ===== */
.terms-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 15px;
}

.terms-logo {
    display: block;
    margin: 0 auto 25px;
    max-width: 180px;
    height: auto;
}

.terms-title {
    text-align: center;
    margin-bottom: 25px;
    color: var(--primary);
    position: relative;
    padding-bottom: 12px;
}

.terms-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

.terms-content {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.terms-section {
    margin-bottom: 20px;
}

.terms-section h3 {
    color: var(--secondary);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.terms-section p, .terms-section ul {
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 0.9rem;
}

.terms-section ul {
    padding-left: 18px;
}

.terms-section li {
    margin-bottom: 6px;
}

/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

@keyframes slideIn {
    from { transform: translateX(-10px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.loading-dots {
    display: inline-block;
    margin-left: 5px;
}

.loading-dots:after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

/* Animaciones adicionales para páginas internas */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInFromRight 0.6s ease-out;
}

.slide-in-left {
    animation: slideInFromLeft 0.6s ease-out;
}

/* ===== RESPONSIVE ===== */

/* Tablets */
@media (max-width: 1024px) {
    .hero-banner {
        padding: 40px 0 25px;
        min-height: 300px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-slider {
        height: 400px;
    }
}

/* Móviles */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    header {
        padding: 8px 0;
    }
    
    .header-content {
        gap: 10px;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 5px;
    }
    
    .logo img {
        height: 35px;
    }
    
    .mini-gif {
        display: none !important;
    }
    
    nav {
        flex: 0 1 auto;
        overflow: visible;
    }
    
    nav ul {
        gap: 8px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 5px 0;
    }
    
    nav a {
        padding: 6px 10px;
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .cart-icon {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }
    
    .back-button-fixed {
        top: 68px;
        left: 15px;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .hero-banner {
        padding: 20px 0 15px !important;
        min-height: 250px !important;
        margin-top: -60px;
    }
    
    .hero-content-wrapper {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .hero-text-content {
        padding: 20px !important;
    }
    
    .hero-title {
        font-size: 1.5rem !important;
        margin-bottom: 10px !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 15px !important;
    }
    
    .main-gif {
        max-height: 150px;
    }
    
    .section, .detail-page {
        padding: 30px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .products-grid, .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card-image {
        height: 180px;
    }
    
    .action-buttons-top {
        flex-direction: column;
        gap: 10px;
    }
    
    .action-buttons-top .btn {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Slider Mobile */
    .hero-slider {
        height: 250px;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .arrow-prev {
        left: 10px;
    }
    
    .arrow-next {
        right: 10px;
    }
    
    .slider-dots {
        bottom: 15px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    /* Páginas internas mobile */
    .detail-hero {
        height: 200px;
    }
    
    .detail-hero-title {
        font-size: 1.5rem;
    }
    
    .detail-hero-subtitle {
        font-size: 0.9rem;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .text-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .text-section {
        padding: 20px;
        margin: 25px 0;
    }
    
    .cta-section {
        padding: 30px 20px;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    header {
        background-color: rgba(30, 30, 30, 0.98);
    }
    
    .product-card, .service-card {
        background-color: #2a2a2a;
    }
    
    .card-description {
        color: #ccc;
    }
    
    .text-section {
        background: linear-gradient(135deg, #2a2a2a 0%, #333 100%);
        color: #e0e0e0;
    }
    
    .gallery-item {
        background-color: #2a2a2a;
        border-color: #444;
    }
    
    .gallery-caption {
        background-color: #2a2a2a;
        color: #e0e0e0;
    }
    
    .gallery-caption h4 {
        color: #e0e0e0;
    }
    
    .gallery-caption p {
        color: #ccc;
    }
}
/* ===== MODAL CARRITO ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 450px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalFadeIn 0.3s ease;
}

.modal-header {
    padding: 12px 15px;
    background-color: var(--primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.close-modal:hover {
    transform: rotate(90deg);
}

.modal-body {
    padding: 15px;
    flex-grow: 1;
    overflow-y: auto;
}

/* ===== CARRITO DE COMPRAS ===== */
.cart-items {
    margin-bottom: 15px;
    max-height: 250px;
    overflow-y: auto;
}

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

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-weight: 500;
    font-size: 0.9rem;
}

.cart-item-price {
    color: var(--secondary);
    font-size: 0.9rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.quantity-btn {
    background: var(--light);
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.8rem;
}

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

.quantity-value {
    margin: 0 8px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
    font-size: 0.9rem;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.cart-item-remove:hover {
    transform: scale(1.1);
}

.cart-total {
    font-size: 1.1rem;
    font-weight: bold;
    text-align: right;
    margin: 12px 0;
    color: var(--primary);
}

.empty-cart-message {
    text-align: center;
    color: #666;
    font-style: italic;
}
/* ===== FOOTER ===== */

footer {
    background-color: #1e2231;
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 3px solid #2022a0;
    flex-shrink: 0;
}

footer p {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

footer .container {
    flex: none !important;
}
/* ===== CHECKOUT STYLES ===== */

/* Contenedor principal checkout */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

@media (min-width: 1024px) {
    .checkout-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* ===== CHECKOUT STYLES - VERSIÓN PREMIUM ===== */

/* Animación de entrada para elementos */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* ===== CHECKOUT STYLES ===== */

/* Animaciones sutiles */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Contenedor principal checkout */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

@media (min-width: 1024px) {
    .checkout-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        padding: 3rem 1rem;
    }
}

/* Secciones checkout con glassmorphism suave */
.checkout-section {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.checkout-section:hover {
    box-shadow: 
        0 12px 40px rgba(52, 152, 219, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

/* Animación diferente para cada sección */
.checkout-section:first-child {
    animation: slideInFromLeft 0.6s ease-out;
}

.checkout-section:last-child {
    animation: slideInFromRight 0.6s ease-out;
}

/* Headers de sección */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(52, 152, 219, 0.15);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-header h2 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.section-header i {
    color: var(--secondary);
    margin-right: 0.5rem;
}

/* Items del carrito en checkout */
.checkout-cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkout-cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(52, 152, 219, 0.1);
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.checkout-cart-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--secondary);
    box-shadow: 0 4px 16px rgba(52, 152, 219, 0.15);
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--secondary);
    font-weight: 500;
}

.cart-item-subtotal {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 0.25rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(52, 152, 219, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.quantity-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.quantity-value {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.cart-item-remove {
    background: rgba(231, 76, 60, 0.1);
    border: none;
    color: #e74c3c;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.1);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Resumen del carrito */
.cart-summary {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(44, 62, 80, 0.1);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(52, 152, 219, 0.08);
    border-radius: 12px;
}

.total-amount {
    color: var(--secondary);
    font-size: 1.4rem;
}

/* Formulario premium */
.premium-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
}

.form-label i {
    color: var(--secondary);
    margin-right: 0.5rem;
    width: 16px;
}

.elegant-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(44, 62, 80, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.elegant-input:focus {
    outline: none;
    border-color: var(--secondary);
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.elegant-input::placeholder {
    color: rgba(44, 62, 80, 0.5);
}

/* Grupo de teléfono */
.phone-group {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0.75rem;
    align-items: center;
}

.country-code {
    min-width: 100px; /* ← ANTES: 140px, AHORA: 100px */
    max-width: 120px; /* ← NUEVO: limita el ancho máximo */
    padding: 1rem 0.5rem; /* ← Padding más compacto */
    appearance: menulist !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center; /* ← Ajustado */
    background-size: 14px; /* ← Flecha un poco más pequeña */
    padding-right: 2rem; /* ← Menos padding derecho */
    background-color: white !important;
    cursor: pointer !important;
    border: 2px solid rgba(44, 62, 80, 0.1);
    border-radius: 12px;
    font-size: 0.95rem; /* ← Texto ligeramente más pequeño */
    transition: all 0.3s ease;
}


.country-code:focus {
    border-color: var(--secondary);
    outline: none;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.phone-number {
    flex: 1;
}

/* Términos y condiciones - VERSIÓN FORZADA */
.terms-group {
    margin: 1.5rem 0;
    padding: 0;
}

.terms-checkbox {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 0.75rem;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(52, 152, 219, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.terms-input {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    cursor: pointer;
    margin: 3px 0 0 0 !important;
    padding: 0 !important;
    accent-color: #27ae60;
    flex-shrink: 0 !important;
    position: relative;
}

.terms-label {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    color: var(--primary) !important;
    cursor: pointer;
    user-select: none;
    margin: 0 !important;
    padding: 0 !important;
    flex: 1 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: calc(100% - 28px);
}

.terms-link {
    color: var(--secondary) !important;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    cursor: pointer;
    display: inline;
}

.terms-link:hover {
    color: var(--primary) !important;
    text-decoration: underline;
}

/* Quitar tooltip nativo del navegador */
.terms-input[title] {
    position: relative;
}

.terms-input::after {
    content: none !important;
}

/* Botones checkout */
.btn-paypal {
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: #bdc3c7 !important;
    color: #7f8c8d !important;
    cursor: not-allowed !important;
    border: none !important;
    border-radius: 12px;
}

.btn-paypal:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
    background: #bdc3c7 !important;
}

.btn-paypal-enabled {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: white !important;
    cursor: pointer !important;
    box-shadow: 0 4px 16px rgba(52, 152, 219, 0.3);
}

.btn-paypal-enabled:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: rgba(44, 62, 80, 0.1);
    color: var(--primary);
    border: 1px solid rgba(44, 62, 80, 0.2);
    padding: 0.65rem 1.25rem; /* ← MÁS COMPACTO (antes era más) */
    font-size: 0.95rem; /* ← Mantiene tamaño de letra legible */
    border-radius: 10px; /* ← Bordes menos redondeados */
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: rgba(44, 62, 80, 0.2);
    color: var(--primary);
    transform: translateY(-1px);
}


.btn-secondary:hover {
    background: rgba(44, 62, 80, 0.2);
    color: var(--primary);
    transform: translateY(-1px);
}

/* Modal de términos específico */
.terms-modal {
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.terms-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.terms-text {
    line-height: 1.6;
    color: var(--primary);
}

.terms-text h4 {
    color: var(--secondary);
    margin: 1.5rem 0 0.5rem 0;
}

.terms-text p {
    margin-bottom: 1rem;
}

.terms-text ul {
    margin: 0.5rem 0 1rem 1rem;
}

.terms-text li {
    margin-bottom: 0.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(44, 62, 80, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

/* Estados de validación */
.elegant-input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.05);
}

.elegant-input:valid:not(:focus):not(:placeholder-shown) {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.05);
}

/* Mensaje carrito vacío - CON BOTÓN MÁS PEQUEÑO */
.empty-cart-message {
    text-align: center;
    padding: 2rem;
}

.empty-cart-message i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.empty-cart-message .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--secondary);
    color: white;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.empty-cart-message .btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .checkout-section {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .phone-group {
        grid-template-columns: 1fr;
    }
    
    .country-code {
        min-width: auto;
    }
    
    .checkout-cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .cart-item-actions {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .terms-label {
        font-size: 0.85rem;
    }
}

/* ===== HERO/BANNER DEL CHECKOUT - VERSIÓN PREMIUM ===== */

/* Animaciones suaves */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.btn-disabled {
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: #bdc3c7 !important;
    color: #7f8c8d !important;
    cursor: not-allowed !important;
    border: none !important;
    border-radius: 12px;
    pointer-events: none; /* También previene clicks */
}

.btn-disabled:hover {
    transform: none !important;
    box-shadow: none !important;
    background: #bdc3c7 !important;
}

/* ===== VALIDACIÓN DE CAMPOS ===== */
.field-status {
    font-size: 0.75rem;
    margin-top: 4px;
    text-align: left;
    padding-left: 2px;
    min-height: 16px;
}

.field-status.error {
    color: #e74c3c;
    font-weight: 500;
}

.field-status.valid {
    color: #27ae60;
    font-weight: 500;
}

.elegant-input {
    transition: border-left 0.3s ease;
}

/* ===== ESTILOS PARA TÉRMINOS DINÁMICOS ===== */
#termsContent .section {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#termsContent .warning {
    background-color: #ffebee;
    padding: 15px;
    border-left: 4px solid #e74c3c;
    margin: 15px 0;
    border-radius: 4px;
}

#termsContent .note {
    background-color: #e8f4f8;
    padding: 15px;
    border-left: 4px solid #3498db;
    margin: 15px 0;
    border-radius: 4px;
}

#termsContent .contact-info {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #ddd;
}

/* Estilos básicos de tipografía */
#termsContent h1 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

#termsContent h2 {
    color: #34495e;
    margin-top: 25px;
    border-left: 4px solid #3498db;
    padding-left: 10px;
}

#termsContent h3 {
    color: #2c3e50;
    margin-top: 20px;
}

#termsContent h4 {
    color: #7f8c8d;
    margin-top: 15px;
}

#termsContent ul, #termsContent ol {
    padding-left: 25px;
    margin: 15px 0;
}

#termsContent li {
    margin-bottom: 10px;
    line-height: 1.5;
}

#termsContent strong {
    color: #2c3e50;
}

#termsContent hr {
    border: none;
    height: 1px;
    background: #ddd;
    margin: 30px 0;
}

/* ===== ESTILOS PARA TÉRMINOS EN PÁGINA Y MODAL ===== */

/* 1. Para la PÁGINA de términos (/terminos) */
#termsContent .section {
    display: block !important;
    margin-bottom: 20px !important;
    padding: 15px !important;
    background: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

/* 2. Para el MODAL del checkout */
.terms-modal .section {
    display: block !important;
    margin-bottom: 15px !important;
    padding: 12px !important;
    background: #f8f9fa !important;
    border-radius: 6px !important;
    border-left: 4px solid #3498db !important;
}

/* Warning, Note, Contact-info en PÁGINA */
#termsContent .warning,
#termsContent .note,
#termsContent .contact-info {
    display: block !important;
    padding: 15px !important;
    margin: 15px 0 !important;
    border-radius: 4px !important;
}

/* Warning, Note, Contact-info en MODAL */
.terms-modal .warning,
.terms-modal .note,
.terms-modal .contact-info {
    display: block !important;
    padding: 12px !important;
    margin: 12px 0 !important;
    border-radius: 4px !important;
    font-size: 0.9rem !important;
}

/* Colores específicos */
#termsContent .warning,
.terms-modal .warning {
    background-color: #ffebee !important;
    border-left: 4px solid #e74c3c !important;
}

#termsContent .note,
.terms-modal .note {
    background-color: #e8f4f8 !important;
    border-left: 4px solid #3498db !important;
}

#termsContent .contact-info,
.terms-modal .contact-info {
    background-color: #f9f9f9 !important;
    border: 1px solid #ddd !important;
    padding: 15px !important;
    border-radius: 6px !important;
}

/* Títulos - PÁGINA */
#termsContent h2 {
    color: #34495e !important;
    margin-top: 25px !important;
    border-left: 4px solid #3498db !important;
    padding-left: 10px !important;
    font-size: 1.3rem !important;
}

#termsContent h3 {
    color: #2c3e50 !important;
    margin-top: 20px !important;
    font-size: 1.1rem !important;
}

/* Títulos - MODAL (más pequeños para caber en modal) */
.terms-modal h2 {
    color: #34495e !important;
    margin-top: 20px !important;
    font-size: 1.1rem !important;
    padding-left: 8px !important;
    border-left: 3px solid #3498db !important;
}

.terms-modal h3 {
    color: #2c3e50 !important;
    margin-top: 15px !important;
    font-size: 1rem !important;
}

.terms-modal h4 {
    color: #7f8c8d !important;
    margin-top: 12px !important;
    font-size: 0.95rem !important;
}

/* Listas - ambos */
#termsContent ul, #termsContent ol,
.terms-modal ul, .terms-modal ol {
    padding-left: 20px !important;
    margin: 10px 0 !important;
}

#termsContent li,
.terms-modal li {
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
}

/* Párrafos - ambos */
#termsContent p,
.terms-modal p {
    margin-bottom: 10px !important;
    line-height: 1.5 !important;
}