/*
Theme Name: Valkirium Industrial Theme
Description: Tema profesional para Valkirium - Servicios Industriales Especializados. Basado en el diseño original HTML/CSS.
Author: Valkirium
Version: 1.0
License: GPL v2 or later
Text Domain: valkirium-theme
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* NAVBAR CUSTOM STYLES */
.nav-container {
    position: absolute;
    width: 80%;
    left: 50%;
    top: 40px;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.navbar {
    position: relative;
    background: #191919;
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 760px;
    z-index: 20;
    margin-left: -40px; /* El nav se mete bajo el círculo */
}

.navbar ul {
    display: flex;
    gap: 24px; /* reducido el espacio entre items */
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-circle {
    position: absolute;
    left: 238px;
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
    height: 180px;
    background: #fbb03b;
    border-radius: 50%;
    z-index: 30;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-circle::before {
    content: '';
    background-image: url('./assets/images/valkirium-NEGRO-ICON.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 120px;
    height: 120px;
    display: block;
}

.nav-link, .contact-btn {
    color: #fff;
    font-weight: bold;
    font-size: 1.15rem;
    text-decoration: none;
    position: relative;
    padding: 0 8px;
    transition: color 0.2s, background 0.2s;
    background: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    outline: none;
    display: inline-block;
    height: 40px;
    line-height: 40px;
}

.nav-link.active::after, .contact-btn.active::after {
    content: '';
    display: block;
    margin: 0 auto;
    margin-top: 8px;
    width: 16px;
    height: 2px;
    background: #fbb03b;
    border-radius: 2px;
}

.nav-link:hover, .contact-btn:hover {
    color: #fbb03b;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 50vh;
    background: none;
    overflow: hidden;
    z-index: 1;
}

/* Ajuste de altura del banner en móviles */
@media (max-width: 768px) {
    .hero-section {
        height: 60vh; /* Un poco más alto en móviles para mejor proporción */
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 55vh; /* Optimizado para móviles pequeños */
    }
}

.banner-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.banner-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    left: 0; top: 0;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4,0,0.2,1);
    pointer-events: none;
}

.banner-slide.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.banner-slide.fade-in {
    animation: bannerFadeIn 1s;
}

@keyframes bannerFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Header positioned over the banner */
header {
    transform: none !important;
}

/* Main content sections */
main {
    background: #f8f9fa;
}

section {
    padding: 4rem 0;
    margin: 0;
    border-bottom: 28px solid #fbb03b; /* Franja amarilla entre secciones */
    width: 100vw;
}

section:last-child {
    border-bottom: none;
}

section:nth-child(even) {
    background: white;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #2c3e50;
    position: relative;
    display: inline-block;
    width: 100%;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px; 
    height: 5px;
    background-color: #fbb03b;
}

/* Quienes Somos Section - Fondo negro */
#quienes-somos {
    background-color: #191919;
    color: white;
}

#quienes-somos h2 {
    color: white;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.content-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.content-image {
    max-height: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
    padding: 2rem 0;
}

.service-card {
    position: relative;
    width: 100%;
    height: 480px;
    perspective: 1000px;
    cursor: pointer;
    background: none;
    border: none;
    box-shadow: none;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-inner > img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    backface-visibility: hidden;
    z-index: 1;
    background: #191919;
}

.service-card-back {
    background: #191919;
    color: white;
    transform: rotateY(180deg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    backface-visibility: hidden;
    z-index: 2;
}

.service-card-inner > img,
.service-card-back {
    border-radius: 15px;
}

.service-card-title {
    margin-top: 2.5rem; /* más margen */
    text-align: center;
    color: #191919;
    font-size: 1.3rem;
    font-weight: bold;
}

/* Products Section */
.productos-cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem 2rem;
    justify-content: center;
    align-items: flex-start;
    margin-top: 2.5rem;
}

.producto-card {
    background: #f3f3f3;
    border-radius: 50% / 35%;
    width: 210px;
    height: 364px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: none;
    padding: 2rem 1rem 1.5rem 1rem;
    transition: box-shadow 0.2s;
    cursor: pointer;
}

.producto-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.producto-icono {
    width: 160px;
    height: 160px;
    background: #fbb03b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}

.producto-icono img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    display: block;
}

.producto-titulo {
    text-align: center;
    font-size: 1.05rem;
    font-weight: 500;
    margin-top: 0.5rem;
    color: #191919;
    font-family: 'Arial', sans-serif;
}

.producto-titulo span {
    font-style: italic;
    font-weight: 600;
}

/* Contact Section */
#contacto {
    background: #191919;
    color: white;
}

#contacto h2 {
    color: white;
}

.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
    align-items: start;
}

.contact-form {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: white;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: rgba(255,255,255,0.9);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fbb03b;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background: #fbb03b;
    color: #191919;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(251, 176, 59, 0.3);
}

.contact-info {
    background: #fff;
    color: #191919;
    padding: 2rem;
    border-radius: 10px;
}

.contact-info h3 {
    color: #191919;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.info-icon {
    width: 30px;
    height: 30px;
    background: rgba(251, 176, 59, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-weight: bold;
}

.info-item a {
    color: inherit;
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.25rem;
    display: block;
}

/* WhatsApp floating button */
.whatsapp-fijo {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    background: #25d366;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s;
}

.whatsapp-fijo:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    background: #20ba5a;
}

/* Custom Alert/Modal */
.custom-alert-hidden {
    display: none !important;
}

#custom-alert, #product-modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-alert-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    margin: 20px;
    position: relative;
}

.custom-alert-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.custom-alert-close:hover {
    color: #333;
}

.error-message {
    color: red;
    font-size: 14px;
    display: block;
    margin-top: 5px;
}

/* Contact Form 7 Styling */
.contact-form .wpcf7 {
    width: 100%;
}

.contact-form .wpcf7-form {
    width: 100%;
}

.contact-form .wpcf7-form-control-wrap {
    position: relative;
    display: block;
    width: 100%;
    margin-bottom: 1.5rem;
}

.contact-form .wpcf7-form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: rgba(255,255,255,0.9);
    color: #333;
}

.contact-form .wpcf7-form-control:focus {
    outline: none;
    border-color: #fbb03b;
}

.contact-form .wpcf7-textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .wpcf7-submit {
    background: #fbb03b;
    color: #191919;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.contact-form .wpcf7-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(251, 176, 59, 0.3);
}

.contact-form .wpcf7-response-output {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 5px;
    font-weight: 500;
}

.contact-form .wpcf7-mail-sent-ok {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-form .wpcf7-mail-sent-ng,
.contact-form .wpcf7-validation-errors {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-form .wpcf7-spinner {
    margin: 0 5px;
}

/* Labels para Contact Form 7 */
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: white;
}

/* =================================================================
   MENÚ HAMBURGUESA MÓVIL - NUEVO DESDE CERO
   ================================================================= */

/* Botón hamburguesa - oculto por defecto en desktop */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: #191919;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    z-index: 10001;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: #2a2a2a;
    transform: scale(1.05);
}

.mobile-menu-toggle .hamburger-line {
    width: 22px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 2px;
}

/* Animaciones del botón hamburguesa cuando está activo */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
    background: #fbb03b;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
    background: #fbb03b;
}

/* Overlay del menú móvil */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(25, 25, 25, 0.98) 0%, rgba(0, 0, 0, 0.95) 100%);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Contenido del menú móvil */
.mobile-menu-content {
    text-align: center;
    max-width: 90%;
    width: 100%;
    transform: translateY(30px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateY(0) scale(1);
}

.mobile-menu-content .mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu-content .mobile-nav-menu li {
    margin: 0;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInFromLeft 0.6s ease forwards;
}

/* Animación escalonada para cada elemento del menú */
.mobile-menu-overlay.active .mobile-nav-menu li:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu-overlay.active .mobile-nav-menu li:nth-child(2) { animation-delay: 0.2s; }
.mobile-menu-overlay.active .mobile-nav-menu li:nth-child(3) { animation-delay: 0.3s; }
.mobile-menu-overlay.active .mobile-nav-menu li:nth-child(4) { animation-delay: 0.4s; }
.mobile-menu-overlay.active .mobile-nav-menu li:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInFromLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-menu-content .mobile-nav-link {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 18px 35px;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, transparent 0%, rgba(251, 176, 59, 0.1) 50%, transparent 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-content .mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(251, 176, 59, 0.2), transparent);
    transition: left 0.5s ease;
}

.mobile-menu-content .mobile-nav-link:hover::before {
    left: 100%;
}

.mobile-menu-content .mobile-nav-link:hover,
.mobile-menu-content .mobile-nav-link:focus {
    background: #fbb03b;
    color: #191919;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(251, 176, 59, 0.4);
    border-color: #fbb03b;
}

.mobile-menu-content .mobile-nav-link:active {
    transform: translateY(-1px) scale(0.98);
}

/* Estilos responsive para diferentes tamaños de móvil */
@media (max-width: 768px) and (orientation: portrait) {
    .mobile-menu-content .mobile-nav-link {
        font-size: 1.2rem;
        padding: 15px 30px;
    }
}

@media (max-width: 480px) {
    .mobile-menu-toggle {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    
    .mobile-menu-toggle .hamburger-line {
        width: 18px;
    }
    
    .mobile-menu-content .mobile-nav-link {
        font-size: 1.1rem;
        padding: 12px 25px;
    }
}

/* Media queries para mostrar/ocultar elementos según el dispositivo */
@media (max-width: 900px) {
    /* Mostrar botón hamburguesa en tablets y móviles */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Ocultar menú desktop y círculo amarillo en móviles */
    .nav-container {
        display: none !important;
    }
    
    .nav-circle {
        display: none !important;
    }
}

@media (min-width: 901px) {
    /* Asegurar que el menú móvil esté oculto en desktop */
    .mobile-menu-overlay {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Prevenir scroll del body cuando el menú móvil está abierto */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-card {
        height: 400px;
    }
    
    .service-card-inner {
        height: 320px;
    }
    
    .productos-cards-grid {
        gap: 2rem 1rem;
    }
    
    .producto-card {
        width: 180px;
        height: 280px;
        padding: 1.5rem 0.5rem 1rem 0.5rem;
    }
    
    .producto-icono {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }
    
    .producto-icono img {
        width: 55px;
        height: 55px;
    }
    
    .producto-titulo {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .section-content {
        padding: 0 15px;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .nav-link, .contact-btn {
        font-size: 1.2rem;
    }
    
    .productos-cards-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .producto-card {
        width: 90vw;
        max-width: 280px;
        height: 240px;
    }
}

/* Breakpoints responsivos para el círculo del nav - igual que en el original */
@media (max-width: 1754px) {
    .nav-circle { left: 180px; }
}
@media (max-width: 1622px) {
    .nav-circle { left: 120px; }
}
@media (max-width: 1500px) {
    .nav-circle { left: 80px; }
}
@media (max-width: 1200px) {
    .nav-circle { left: -24px; }
}
@media (max-width: 1162px) {
    .nav-circle { left: -40px; }
}

/* Desktop navigation positioning - mantiene el diseño original */
@media (min-width: 901px) {
    .nav-container {
        position: absolute;
        width: 80%;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        display: flex;
        justify-content: center;
        align-items: center;
        background: transparent;
    }
    
    .navbar {
        position: relative;
        border-radius: 60px;
        box-shadow: 0 4px 24px rgba(0,0,0,0.08);
        padding: 12px 16px;
        max-width: 760px;
        margin: 0 auto;
    }
    
    .nav-circle {
        position: absolute;
        left: 238px;
        top: 50%;
        transform: translateY(-50%);
        width: 180px;
        height: 180px;
        background: #fbb03b;
        border-radius: 50%;
        z-index: 30;
        box-shadow: 0 4px 24px rgba(0,0,0,0.10);
        pointer-events: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
