/* ===== RESET Y ESTILOS BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Orbitron', monospace;
    background: #000;
    color: #00ffff;
    margin: 0;
    scroll-behavior: smooth;
    line-height: 1.7;
    padding-top: 90px;
    min-height: 100vh;
    overflow-x: hidden;
    text-align: center;
}
/* ===== FONDO ANIMADO ÚNICO ===== */
#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.75;
}
/* ===== EFECTO HOLOGRÁFICO GENERAL ===== */
.hologram-effect {
    background: rgba(0, 30, 40, 0.7);
    border: 1px solid #00ffff;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    padding: 20px;
    margin: 25px auto;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}
.hologram-effect::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: hologram-shine 6s infinite linear;
    z-index: -1;
}
@keyframes hologram-shine {
    0% { transform: translate(-50%, -50%) rotate(45deg); }
    100% { transform: translate(50%, 50%) rotate(45deg); }
}
.hologram-effect:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 30px #00ffff, 0 0 60px rgba(0, 255, 255, 0.3);
}
/* ===== MENÚ PRINCIPAL ===== */
#menu-principal {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    border-radius: 15px 15px 0 0;
    padding: 10px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 480px;
    width: 90vw;
    box-shadow: 0 0 25px #00ffff;
    z-index: 10001;
    border: 1px solid #00ffff;
}
#menu-principal .menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: #00ffff;
    font-family: 'Orbitron', monospace;
    font-size: 16px;
}
#menu-principal .menu-btn:hover,
#menu-principal .menu-btn:focus {
    transform: scale(1.3);
    outline: none;
}
#menu-principal .menu-btn svg {
    stroke: #00ffff;
    fill: none;
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 10px #33ffff);
    margin-right: 8px;
}
/* ===== HERO SECTION ===== */
.hero {
    max-width: 1200px !important;
    width: 90vw !important;
    margin: 80px auto 60px auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    text-shadow: 0 0 30px #00ffff;
    animation: glow 2s ease-in-out infinite alternate;
    margin-bottom: 25px;
    color: #00ffff;
    letter-spacing: 1px;
}
@keyframes glow {
    from { text-shadow: 0 0 10px #00ffff; }
    to { text-shadow: 0 0 30px #00ffff, 0 0 40px #00ffff; }
}
.hero p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #00cccc;
    line-height: 1.6;
    margin-bottom: 20px;
}
/* ===== SECCIONES PRINCIPALES ===== */
section.custom-section {
    max-width: 1200px !important;
    width: 90vw !important;
    margin: 40px auto;
    background: rgba(0, 20, 30, 0.85);
    border-radius: 20px;
    border: 2px solid #00ffff;
    box-shadow: 0 0 40px #00ffff, 0 0 60px rgba(0, 255, 255, 0.3);
    padding: 30px;
    color: #00cccc;
    font-size: 1.15rem;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    overflow-x: hidden;
}
/* Encabezados de secciones principales */
.main-section-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(0, 40, 50, 0.7);
    border-radius: 15px;
    border: 2px solid #00ffff;
    box-shadow: 0 0 25px #00ffff;
    cursor: pointer;
    transition: all 0.3s ease;
}
.main-section-header:hover {
    background: rgba(0, 80, 90, 0.5);
    box-shadow: 0 0 30px #00ffff;
}
.main-section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #00ffff;
    margin: 0;
    text-shadow: 0 0 15px #00ffff;
}
.main-section-icon {
    width: 50px;
    height: 50px;
    stroke: #00ffff;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 10px #33ffff);
}
.main-section-header::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #00ffff;
    margin-left: auto;
    transition: transform 0.3s ease;
}
.main-section-header.active::after {
    transform: rotate(180deg);
}
.main-section-header:focus {
    outline: 2px solid #00ffff;
    outline-offset: 2px;
}
/* Contenido de secciones principales */
.main-section-content {
    padding: 15px 0;
    line-height: 1.6;
    text-align: left;
    display: none;
}
.main-section-header.active + .main-section-content {
    display: block;
}
/* ===== SUBSECCIONES ===== */
.subsection {
    background: rgba(0, 30, 40, 0.85);
    border-radius: 15px;
    border: 1px solid #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    padding: 20px;
    margin: 25px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.subsection:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px #00ffff;
}
.subsection-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 50, 60, 0.5);
    border-radius: 12px;
    border: 1px solid #00ffff;
    cursor: pointer;
    transition: all 0.3s ease;
}
.subsection-header:hover {
    background: rgba(0, 80, 90, 0.5);
    box-shadow: 0 0 15px #00ffff;
}
.subsection-header h3 {
    font-size: 1.5rem;
    color: #00ffff;
    margin: 0;
}
.subsection-icon {
    width: 30px;
    height: 30px;
    stroke: #00ffff;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease;
}
.subsection-header.active .subsection-icon {
    transform: rotate(90deg);
}
.subsection-header::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #00ffff;
    margin-left: auto;
    transition: transform 0.3s ease;
}
.subsection-header.active::after {
    transform: rotate(180deg);
}
.subsection-header:focus {
    outline: 2px solid #00ffff;
    outline-offset: 2px;
}
.subsection-content {
    padding: 15px;
    line-height: 1.6;
    text-align: left;
    display: none;
}
.subsection-header.active + .subsection-content {
    display: block;
}
/* ===== SERVICIOS PROFESIONALES ===== */
#servicios.custom-section {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 30px 15px;
    max-width: 1200px !important;
    width: 90vw !important;
    margin: 40px auto;
    box-sizing: border-box;
}
#servicios-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    justify-content: center;
    padding: 20px 0;
}
#servicios-content .subsection {
    background: rgba(0, 30, 40, 0.85);
    border-radius: 15px;
    border: 1px solid #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    padding: 20px;
    margin: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* ===== PRODUCTOS ===== */
#productos.custom-section {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 30px 15px;
    max-width: 1200px !important;
    width: 90vw !important;
    margin: 40px auto;
    box-sizing: border-box;
}
#productos-content {
    display: block;
    padding: 20px 0;
}
.productos-container {
    display: block;
    width: 100%;
}
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-template-rows: auto;
    gap: 25px;
    justify-content: center;
}
.producto {
    background: rgba(0, 30, 40, 0.85);
    border: 1px solid #00ffff;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    position: relative;
}
.producto:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px #00ffff;
}
.producto img {
    max-width: 100%;
    height: 180px;
    object-fit: contain;
    margin: 0 auto 15px;
    border-radius: 8px;
    background: #001a1a;
    padding: 10px;
}
.producto .titulo {
    font-weight: 700;
    font-size: 1.25rem;
    color: #00ffff;
    margin-bottom: 12px;
}
.producto .precio {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: #00cccc;
}
.producto .calificacion {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #ffcc00;
}
.producto .descripcion {
    margin-bottom: 15px;
    flex-grow: 1;
    color: #00cccc;
    line-height: 1.6;
}
.producto .botones {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}
.producto .comprar-btn,
.producto .dato-btn {
    padding: 12px;
    border: 1px solid #00ffff;
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.producto .comprar-btn:hover,
.producto .dato-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 10px #00ffff;
}
.producto .dato-btn[aria-expanded="true"],
.producto .dato-btn:focus {
    background: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 10px #00ffff;
}
.producto .dato-btn svg,
.producto .dato-btn[aria-expanded="true"] svg,
.producto .dato-btn:focus svg {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.producto .dato-curioso {
    display: none;
    margin-top: 15px;
    padding: 12px;
    background: rgba(0, 51, 51, 0.95);
    border: 1px solid #00ffff;
    border-radius: 6px;
    font-size: 1rem;
    color: #00cccc;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
    text-align: center;
    line-height: 1.6;
}
.producto .dato-btn[aria-expanded="true"] ~ .dato-curioso {
    display: block;
}
.btn-icon {
    width: 24px;
    height: 24px;
    fill: #00ffff;
    margin-right: 8px;
    display: inline-block !important;
    visibility: visible !important;
    filter: drop-shadow(0 0 5px #33ffff);
}
/* ===== TESTIMONIOS ===== */
.testimonios {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 25px;
}
.testimonial {
    background: rgba(0, 30, 40, 0.7);
    border: 1px solid #00ffff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}
.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px #00ffff;
}
.testimonial img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #00ffff;
}
.testimonial div {
    flex: 1;
}
.testimonial strong {
    color: #00ffff;
    display: block;
    margin-bottom: 5px;
    font-size: 1.05rem;
}
.testimonial .estrellas {
    color: #ffcc00;
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.testimonial .fecha {
    color: #00aaaa;
    font-size: 0.85rem;
    margin-top: 5px;
    font-style: italic;
}
/* ===== FORMULARIO DE CONTACTO ===== */
#contacto.custom-section {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 30px 15px;
    max-width: 1200px !important;
    width: 90vw !important;
    margin: 40px auto;
    box-sizing: border-box;
    overflow-x: hidden;
}
#contacto-content.main-section-content {
    display: block;
    padding: 20px 0;
    max-width: 1200px !important;
    width: 90vw !important;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: hidden;
}
#contacto-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px !important; /* Adjusted max-width for better form appearance */
    width: 100% !important;
    margin: 0 auto;
    text-align: center;
    background: rgba(0, 30, 40, 0.85);
    border: 1px solid #00ffff; /* Unified border for consistency */
    border-radius: 15px;
    padding: 20px; /* Adjusted padding for better spacing */
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    box-sizing: border-box;
    height: auto;
    overflow: hidden; /* Changed from overflow-x: hidden to overflow: hidden for consistency */
    position: relative;
}
#contacto-form label {
    display: block;
    text-align: center;
    margin-bottom: 8px;
    font-weight: 700;
    color: #00ffff;
    font-size: 1.1rem;
}
#contacto-form input,
#contacto-form select,
#contacto-form textarea {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 10px;
    margin: 0 0 10px 0;
    border: 1px solid #00ffff;
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    border-radius: 8px;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    text-align: center;
    box-sizing: border-box;
}
#contacto-form input::placeholder,
#contacto-form textarea::placeholder {
    color: rgba(0, 255, 255, 0.6);
    opacity: 1;
}
#contacto-form select {
    background: rgba(0, 50, 60, 0.9);
    appearance: none;
    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='%2300ffff' 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 10px center;
    background-size: 16px;
    padding-right: 35px;
}
#contacto-form select option {
    background: rgba(0, 30, 40, 0.95);
    color: #00ffff;
    padding: 12px;
    font-size: 1rem;
}
#contacto-form input:focus,
#contacto-form select:focus,
#contacto-form textarea:focus {
    outline: none;
    box-shadow: 0 0 10px #00ffff;
}
#contacto-form .form-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
}
#contacto-form button {
    padding: 14px 20px;
    border: 1px solid #00ffff;
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 180px;
    font-size: 1rem;
    box-sizing: border-box;
}
#contacto-form button[type="submit"] {
    background: rgba(0, 255, 255, 0.2);
}
#contacto-form button:hover {
    background: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 10px #00ffff;
}
/* ===== FOOTER ===== */
footer.hologram-effect {
    max-width: 1200px !important;
    width: 90vw !important;
    margin: 40px auto;
    padding: 40px 20px;
    background: rgba(0, 30, 40, 0.7);
    border: 1px solid #00ffff;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    text-align: center;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    box-sizing: border-box;
}
footer.hologram-effect:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 30px #00ffff, 0 0 60px rgba(0, 255, 255, 0.3);
}
/* ===== SOCIAL ICONS ===== */
.social-icons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 25px;
}
.social-icons a {
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid #00ffff;
    box-shadow: 0 0 10px #00ffff;
}
.social-icons a:hover {
    transform: scale(1.2);
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px #00ffff;
}
.social-icons .social-icon {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 0 5px #00ffff);
}
.social-icons .facebook-icon {
    fill: #3b5998;
}
.social-icons .instagram-icon {
    fill: #e4405f;
}
.social-icons .youtube-icon {
    fill: #cd201f;
}
.social-icons .tiktok-icon {
    fill: none;
}
/* ===== BOTÓN SUBIR ===== */
#btn-subir {
    display: none;
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(0,255,255,0.3);
    border: 2px solid #00ffff;
    box-shadow: 0 0 25px #00ffff, 0 0 40px rgba(0, 255, 255, 0.5);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    transition: all 0.3s ease;
}
#btn-subir:hover {
    background: rgba(0,255,255,0.4);
    transform: scale(1.1);
    box-shadow: 0 0 30px #00ffff, 0 0 50px rgba(0, 255, 255, 0.6);
}
#btn-subir svg {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 10px #00ffff);
}
/* ===== MEDIA QUERIES ===== */
@media (max-width: 1600px) {
    .productos-grid {
        grid-template-columns: repeat(3, minmax(300px, 1fr));
    }
}
@media (max-width: 1200px) {
    .productos-grid {
        grid-template-columns: repeat(2, minmax(300px, 1fr));
    }
}
@media (max-width: 900px) {
    section.custom-section {
        padding: 25px 20px;
        margin: 40px 15px;
    }
    .testimonios {
        grid-template-columns: 1fr;
    }
    .productos-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    #menu-principal {
        gap: 20px;
        padding: 10px 15px;
    }
    #menu-principal .menu-btn svg {
        width: 40px;
        height: 40px;
    }
    .main-section-icon {
        width: 40px;
        height: 40px;
    }
    .subsection-icon {
        width: 25px;
        height: 25px;
    }
    .social-icons a {
        width: 45px;
        height: 45px;
    }
    .social-icons .social-icon {
        width: 25px;
        height: 25px;
    }
    #btn-subir {
        bottom: 30px;
        right: 30px;
        width: 60px;
        height: 60px;
    }
    #btn-subir svg {
        width: 35px;
        height: 35px;
    }
    #contacto-form select {
        font-size: 16px;
    }
}
@media (max-width: 480px) {
    body {
        padding-top: 70px;
    }
    #menu-principal {
        gap: 15px;
    }
    #menu-principal .menu-btn svg {
        width: 32px;
        height: 32px;
    }
    .hero {
        margin: 60px auto 30px auto;
    }
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }
	
    .social-icons {
        gap: 15px;
    }
    .social-icons a {
        width: 40px;
        height: 40px;
    }
    .social-icons .social-icon {
        width: 20px;
        height: 20px;
    }
    .testimonial {
        flex-direction: column;
        text-align: center;
    }
    #btn-subir {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    #btn-subir svg {
        width: 30px;
        height: 30px;
    }
    .main-section-header {
        flex-direction: column;
        gap: 10px;
    }
    .main-section-header::after {
        margin-left: 0;
        margin-top: 5px;
    }
    #contacto-form .form-buttons {
        flex-direction: column;
        gap: 15px;
    }
    #contacto-form button {
        max-width: 100%;
    }
    .producto .dato-curioso {
        font-size: 0.95rem;
        padding: 10px;
    }
}

/* ===== FLOATING + GLOW ONLY ON ICON + TEXT INSIDE MAIN HEADERS ===== */
.main-section-header .header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    animation: floatUpDown 2.5s ease-in-out infinite;
    transition: all 0.3s ease;
}

/* Floating up/down animation */
@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(10px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Glow on hover */
.main-section-header:hover .header-inner {
    text-shadow: 0 0 25px #00ffff, 0 0 40px rgba(0, 255, 255, 0.7);
    transform: translateY(-5px) scale(1.03);
}


