/* Variables CSS para mantener consistencia con style.css */
:root {
    --main-bg: #000;
    --glass-bg: rgba(24,24,24,0.7);
    --accent: #00eaff;
    --accent2: #00d4e6;
    --accent3: #00eaff;
    --accent4: #a259ff;
    --text-main: #fff;
    --text-secondary: #bdbdbd;
    --border: #222;
    --shadow: 0 8px 32px #000b;
    --radius: 18px;
    --glass-blur: 18px;
}

/* Hero mejorado con gradiente y animaciones */
.hero {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 50%, #000 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
    rgba(255, 255, 255, 0.03) 0%, 
    transparent 50%, 
    rgba(0, 234, 255, 0.05) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--accent), var(--accent3));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
    filter: brightness(1);
    }
    to {
    filter: brightness(1.1);
    }
}

.hero-content p {
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
    opacity: 0;
    transform: translateY(30px);
    }
    to {
    opacity: 1;
    transform: translateY(0);
    }
}

/* Breadcrumb mejorado */
nav[aria-label="Navegación"] {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.1s;
}

nav[aria-label="Navegación"] a {
    transition: all 0.3s ease;
}



/* Botones con animación de entrada */
.hero-content > div {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.5s;
}

.product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.quick-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.spec-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(0, 234, 255, 0.05) 50%, 
    rgba(162, 89, 255, 0.05) 100%);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    opacity: 0;
    animation: slideInUp 0.8s ease forwards;
    position: relative;
    overflow: hidden;
}

.spec-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.1), 
    transparent);
    transition: left 0.6s ease;
}

.spec-card:hover::before {
    left: 100%;
}

.spec-card:nth-child(1) { animation-delay: 0.2s; }
.spec-card:nth-child(2) { animation-delay: 0.4s; }
.spec-card:nth-child(3) { animation-delay: 0.6s; }

@keyframes slideIn {
    from {
    opacity: 0;
    transform: translateY(50px);
    }
    to {
    opacity: 1;
    transform: translateY(0);
    }
}

.spec-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 234, 255, 0.3);
}

.spec-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 0 10px rgba(0, 234, 255, 0.3));
    transition: all 0.3s ease;
}

.spec-card:hover .spec-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(0, 234, 255, 0.5));
}

.spec-label {
    font-weight: 600;
    color: var(--accent3);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(0, 234, 255, 0.2);
    transition: all 0.3s ease;
}

.spec-card:hover .spec-label {
    color: var(--accent);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.spec-value {
    color: #ecf0f1;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.spec-card:hover .spec-value {
    color: var(--accent);
}

.product-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
}

.product-image-container {
    text-align: center;
    margin-bottom: 4rem;
}

.product-image {
    max-width: 100%;
    width: 600px;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    opacity: 0;
    animation: fadeInScale 1s ease forwards;
}

@keyframes fadeInScale {
    from {
    opacity: 0;
    transform: scale(0.8);
    }
    to {
    opacity: 1;
    transform: scale(1);
    }
}

.product-image:hover {
    transform: scale(1.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.tabs-container {
    background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(0, 234, 255, 0.03) 50%, 
    rgba(162, 89, 255, 0.03) 100%);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    animation-delay: 0.8s;
}

.tabs-nav {
    display: flex;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 0.5rem;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-button {
    flex: 1;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: #bdc3c7;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: max-content;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
    transparent, 
    rgba(0, 234, 255, 0.1), 
    transparent);
    transition: left 0.6s ease;
}

.tab-button:hover::before {
    left: 100%;
}

.tab-button.active {
    background: linear-gradient(45deg, var(--accent3), var(--accent4));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 234, 255, 0.3);
}

.tab-button:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

.tab-button:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: #ecf0f1;
}

.tab-content {
    padding: 2rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    min-height: 300px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content h3 {
    color: #3498db;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.contact-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 20px;
    max-width: 500px;
    margin: 5% auto;
    padding: 2rem;
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.contact-modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: #bdc3c7;
    cursor: pointer;
    transition: color 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

/* Modal content styling for ultra-modern form */
.modal-content .contact-form-ultra {
    margin-top: 1rem;
}

.modal-content .form-grid {
    gap: 1.5rem;
}

.modal-content .contact-btn-ultra {
    margin-top: 2rem;
}

/* Form messages styling */
.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideIn 0.3s ease-out;
}

.form-message.success-message {
    background: rgba(39, 174, 96, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.form-message.error-message {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading state for ultra-modern form */
.contact-form-ultra.form-loading {
    pointer-events: none;
    opacity: 0.7;
}

.contact-btn-ultra.loading {
    opacity: 0.7;
    transform: scale(0.98);
}

/* Prevenir scroll automático en tabs */
.tab-button {
    scroll-margin: 0 !important;
    scroll-padding: 0 !important;
}

.tab-button:focus {
    outline: none;
    scroll-behavior: auto;
    scroll-margin: 0 !important;
}

.tab-content {
    scroll-behavior: auto;
    scroll-margin: 0 !important;
    scroll-padding: 0 !important;
}

.tab-content:focus {
    outline: none;
    scroll-behavior: auto;
    scroll-margin: 0 !important;
}

/* Asegurar que no haya scroll automático global */
html {
    scroll-behavior: auto !important;
}

/* Prevenir cualquier scroll en cambios de contenido */
.tabs-container * {
    scroll-margin: 0 !important;
    scroll-padding: 0 !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .product-container {
    padding: 1rem;
    }
    
    .quick-specs {
    grid-template-columns: 1fr;
    gap: 1rem;
    }
    
    .tabs-nav {
    flex-direction: column;
    }
    
    .tab-button {
    text-align: center;
    }
    
    .product-image {
    width: 100%;
    height: 250px;
    }
    
    /* Responsive para Modal */
    .contact-section-ultra-modal {
    padding: 20px 0;
    }
    
    .contact-section-ultra-modal .contact-form-ultra {
    padding: 30px 20px;
    margin-bottom: 20px;
    }
    
    .contact-section-ultra-modal .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 25px;
    }
    
    .contact-section-ultra-modal .contact-info-cards {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    }
    
    .contact-section-ultra-modal .contact-card {
    min-width: 200px;
    }
}


/* === CSS ESPECÍFICO PARA MODAL USANDO ESTILOS IDÉNTICOS AL INDEX === */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.95) 0%,
    rgba(18, 18, 18, 0.92) 50%,
    rgba(0, 0, 0, 0.95) 100%);
    border-radius: 24px;
    max-width: 95%;
    width: 900px;
    max-height: 90vh;
    margin: 0 auto;
    padding: 0;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.8),
    0 10px 30px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.contact-modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px 30px 0 30px;
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: #bdc3c7;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.close-modal:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.2);
    transform: scale(1.1);
}

/* Ajustar la sección de contacto dentro del modal para usar estilos del index */
.modal-content .contact-section-ultra {
    padding: 20px 30px 40px 30px;
    background: transparent;
}

.modal-content .contact-section-ultra::before {
    display: none;
}

.modal-content .contact-header {
    margin-bottom: 40px;
}

.modal-content .contact-title-ultra {
    font-size: clamp(2rem, 4vw, 3rem);
}

.modal-content .contact-form-ultra {
    margin-bottom: 30px;
}

/* Form messages styling */
.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideIn 0.3s ease-out;
}

.form-message.success-message {
    background: rgba(39, 174, 96, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.form-message.error-message {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading state for ultra-modern form */
.contact-form-ultra.form-loading {
    pointer-events: none;
    opacity: 0.7;
}

.contact-btn-ultra.loading {
    opacity: 0.7;
    transform: scale(0.98);
}

/* Responsive para Modal */
@media (max-width: 768px) {
    .modal-content {
    max-width: 98%;
    margin: 1% auto;
    max-height: 98vh;
    }
    
    .modal-header {
    padding: 15px 20px 0 20px;
    }
    
    .modal-content .contact-section-ultra {
    padding: 15px 20px 30px 20px;
    }
    
    .modal-content .contact-header {
    margin-bottom: 30px;
    }
    
    .modal-content .contact-form-ultra {
    padding: 30px 20px;
    margin-bottom: 20px;
    }
    
    .modal-content .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 25px;
    }
    
    .modal-content .contact-info-cards {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    }
    
    .modal-content .contact-card {
    min-width: 200px;
    }
}

/* Botón Premium CTA - Mismo estilo que index.html */
.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%) !important;
  color: #000 !important;
  border-radius: 14px;
  padding: 12px 28px;
  font-weight: 700;
  box-shadow: 
    0 6px 20px rgba(0, 234, 255, 0.3),
    0 2px 8px rgba(0, 234, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(0, 234, 255, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: none;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.btn-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.4) 50%, 
    transparent 100%);
  transition: left 0.6s ease;
}

.btn-accent:hover::before {
  left: 100%;
}

.btn-accent:hover { 
  background: linear-gradient(135deg, var(--accent2) 0%, var(--accent) 100%) !important;
  color: #fff !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 8px 30px rgba(0, 234, 255, 0.4),
    0 4px 15px rgba(0, 234, 255, 0.3);
}

/* Animación shimmer */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

