/* Ibanez Sound Spatial - Premium Dark Theme */

:root {
    /* Colors */
    --bg-primary: #1A1A1A;
    --bg-secondary: #0D0D0D;
    --text-primary: #F2F2F2;
    --text-secondary: #A1A1A1;
    --accent-glow: #3B82F6;
    /* Sonic Blue for glow effects */
    --accent-silver: #E0E0E0;

    /* Gradients */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-gradient: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

    /* Shadows */
    --glow-shadow: 0 0 20px rgba(59, 130, 246, 0.3);

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gradient {
    background: linear-gradient(90deg, #F2F2F2, #A1A1A1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background: var(--text-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-link:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.btn-primary-outline {
    border: 1px solid var(--text-primary);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-primary-outline:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.05), transparent 70%);
    z-index: -1;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-glow);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.glow-effect {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    animation: button-pulse 3s infinite;
}

@keyframes button-pulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 35px rgba(255, 255, 255, 0.4);
    }
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #ffffff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Hero 3D Visual - CSS Placeholder */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.sphere-container {
    width: 400px;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

.sphere {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.8));
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.1), 0 0 60px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.orbital-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.ring-1 {
    width: 300px;
    height: 300px;
    animation: rotate 10s linear infinite;
}

.ring-2 {
    width: 380px;
    height: 380px;
    animation: rotate-reverse 15s linear infinite;
    border-color: rgba(59, 130, 246, 0.2);
}

.ring-3 {
    width: 250px;
    height: 10px;
    border-radius: 50%;
    transform: translate(-50%, -50%) rotateX(70deg);
    animation: pulse 4s infinite;
    border: 2px solid rgba(255, 255, 255, 0.05);
}

@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotate-reverse {
    0% {
        transform: translate(-50%, -50%) rotate(360deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-primary);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

/* Partners Section */
.partners-section {
    padding: 3rem 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.partners-label {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.partners-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    opacity: 0.5;
}

.partner-item {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* Glass Card Global */
.glass-card {
    background: var(--card-gradient);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
}

/* Value Prop Section */
.value-prop-section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.value-card {
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.value-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.value-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Services Section (Flip Cards) */
.services-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card-flip {
    height: 350px;
    perspective: 1000px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.service-card-flip:hover .service-card-inner {
    transform: rotateY(180deg);
}

/* Mobile tap support added via JS usually, hover works for desktop */

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
}

.service-card-front {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.service-image-placeholder {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.service-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-icon {
    font-size: 4rem;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    text-align: left;
}

.service-overlay h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.service-card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: var(--bg-primary);
    /* Ensure solid background on flip to hide front */
    border: 1px solid var(--text-primary);
    /* Highlight border on back */
}

.service-card-back h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card-back p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.feature-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-primary);
    text-transform: uppercase;
}

/* Showcase Section */
.showcase-section {
    padding: 6rem 0;
}

.showcase-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 4rem;
}

.showcase-text {
    flex: 1;
}

.showcase-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.showcase-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.feature-list li {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.showcase-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.audio-viz {
    display: flex;
    gap: 5px;
    align-items: center;
    height: 100px;
}

.bar {
    width: 10px;
    background: var(--text-primary);
    border-radius: 5px;
    animation: bounce 1s infinite ease-in-out;
}

.bar:nth-child(even) {
    background: var(--text-secondary);
}

.bar:nth-child(1) {
    height: 40px;
    animation-duration: 1.2s;
}

.bar:nth-child(2) {
    height: 80px;
    animation-duration: 1.0s;
}

.bar:nth-child(3) {
    height: 50px;
    animation-duration: 1.4s;
}

.bar:nth-child(4) {
    height: 90px;
    animation-duration: 0.8s;
}

.bar:nth-child(5) {
    height: 60px;
    animation-duration: 1.1s;
}

.bar:nth-child(6) {
    height: 30px;
    animation-duration: 1.3s;
}

.bar:nth-child(7) {
    height: 70px;
    animation-duration: 0.9s;
}

.bar:nth-child(8) {
    height: 45px;
    animation-duration: 1.5s;
}

@keyframes bounce {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.5);
    }
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    margin-bottom: 4rem;
}

.contact-wrapper {
    text-align: center;
    padding: 5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

.contact-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.contact-wrapper p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-brand p {
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-group h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.link-group a:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 8rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        margin-bottom: 3rem;
    }

    .showcase-content {
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 600px) {
    .contact-title {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
    }

    .hero-title {
        font-size: 2rem;
    }
}

/* Mobile Menu Toggle (Hidden by default) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
}

/* Service Cover Image */
.service-img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.8s ease;
}

/* Service Card Hover Effect for Image */
.service-card-flip:hover .service-img-cover {
    transform: scale(1.1);
}

/* Hero Image 3D Effect */
.hero-img-3d {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(59, 130, 246, 0.2));
    animation: float 6s ease-in-out infinite;
}

/* Updated Overlay for better text readability */
.service-overlay {
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

/* Estilos para el Formulario Tech */
.contact-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: left;
    align-items: center;
}

.tech-form .form-group {
    margin-bottom: 20px;
}

.tech-form label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #00FF94;
    margin-bottom: 8px;
}

.tech-form input,
.tech-form select,
.tech-form textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    border-radius: 4px;
    color: white;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.tech-form input:focus,
.tech-form select:focus,
.tech-form textarea:focus {
    outline: none;
    border-color: #00FF94;
    background: rgba(0, 255, 148, 0.05);
}

/* Responsivo para movil */
@media (max-width: 768px) {
    .contact-content-grid {
        grid-template-columns: 1fr;
    }
}

/* Corrección para que el menú desplegable sea oscuro */
.tech-form select option {
    background-color: #1A1A1A;
    /* Fondo oscuro igual que tu web */
    color: #FFFFFF;
    /* Texto blanco */
    padding: 10px;
}