/* ============================================
   VALLEY TECHNOLOGIES - Hoja de Estilos
   ============================================ */

/* ===== RESET Y VARIABLES ===== */
:root {
    --primary: #0a3d62;
    --primary-light: #1e5f8e;
    --secondary: #e67e22;
    --accent: #2ecc71;
    --dark: #1a1a2e;
    --light: #f5f7fa;
    --text: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== SECCIONES ===== */
.section-badge {
    display: inline-block;
    background: var(--secondary);
    color: var(--white);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 650px;
    margin-bottom: 40px;
}

/* ===== BOTONES ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

.btn-primary:hover {
    background: #d35400;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* ===== HEADER / NAVBAR ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo i {
    color: var(--secondary);
    font-size: 2rem;
}

.logo span {
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-link {
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    color: var(--text);
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(10, 61, 98, 0.06);
}

.nav-link.active {
    color: var(--primary);
    font-weight: 700;
    background: rgba(10, 61, 98, 0.1);
}

.nav-cta {
    background: var(--secondary);
    color: var(--white) !important;
    padding: 10px 20px !important;
    border-radius: 50px;
    font-weight: 600;
}

.nav-cta:hover {
    background: #d35400 !important;
    transform: translateY(-2px);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    padding: 5px;
    background: none;
    border: none;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== HERO ===== */
/* ===== HERO CON IMAGEN DE FONDO ===== */
.hero {
    padding: 140px 0 80px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0a3d62 0%, #1a5276 40%, #0a3d62 100%);
}

/* Imagen de fondo */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/hero-tecnologia.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    /* Animación sutil de zoom */
    animation: heroZoom 20s ease-in-out infinite alternate;
}

/* Efecto de superposición para que el texto sea legible */
.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 61, 98, 0.95) 0%,
        rgba(26, 82, 118, 0.85) 40%,
        rgba(10, 61, 98, 0.9) 100%
    );
    z-index: 1;
}

/* Animación de zoom para la imagen de fondo */
@keyframes heroZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* Efecto de partículas o patrones sobre la imagen */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(230, 126, 34, 0.15);
    border-radius: 50%;
    z-index: 2;
    animation: floatAnimation 15s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 50%;
    z-index: 2;
    animation: floatAnimation 20s ease-in-out infinite reverse;
}

@keyframes floatAnimation {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, -30px);
    }
    100% {
        transform: translate(0, 0);
    }
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h1 .highlight {
    color: var(--secondary);
    position: relative;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 30px;
    color: #e8f0f8;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}

.hero .btn-outline {
    border-color: white;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.hero .btn-outline:hover {
    background: white;
    color: var(--primary);
    border-color: white;
}
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #0a3d62 0%, #1a5276 40%, #0a3d62 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(230, 126, 34, 0.1);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(46, 204, 113, 0.08);
    border-radius: 50%;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero h1 .highlight {
    color: var(--secondary);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    color: #dce8f0;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero .btn-outline {
    border-color: white;
    color: white;
}

/* ===== SECCIÓN SOBRE NOSOTROS ===== */
.about {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 1.05rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.about-image {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.about-image i {
    font-size: 8rem;
    color: var(--primary-light);
}

/* ===== PRODUCTOS ===== */
/* ===== ESTILOS PARA IMÁGENES DE PRODUCTOS ===== */
.product-image {
    height: 220px;
    background: #e8ecf1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* La imagen cubrirá todo el espacio sin deformarse */
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1); /* Efecto zoom al pasar el mouse */
}

/* Si quieres que la imagen se vea completa sin recortes */
.product-image img.object-contain {
    object-fit: contain; /* La imagen se verá completa */
    padding: 20px;
}

/* Opcional: Overlay sutil sobre la imagen */
.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.05));
    pointer-events: none;
}
.products {
    padding: 80px 0;
    background: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    height: 220px;
    background: #e8ecf1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-light);
    position: relative;
    overflow: hidden;
}

.product-image i {
    transition: var(--transition);
}

.product-card:hover .product-image i {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 8px;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.product-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
    flex: 1;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e0e6ed;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
}

.product-price span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-light);
}

.btn-consultar {
    padding: 8px 18px;
    background: var(--primary);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-consultar:hover {
    background: var(--primary-light);
}

/* ===== SERVICIOS ===== */
.services {
    padding: 80px 0;
    background: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 35px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border-top: 4px solid var(--primary);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--secondary);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===== CONTACTO / FORMULARIO ===== */
.contact {
    padding: 80px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text h4 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.contact-text p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-form {
    background: var(--light);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #dce4ec;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
    color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(10, 61, 98, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 10px;
    font-style: italic;
}

.btn-submit {
    width: 100%;
}

.form-success {
    text-align: center;
    padding: 30px;
    background: #d4edda;
    border-radius: 12px;
    margin-top: 20px;
    color: #155724;
}

.form-success i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.form-success h3 {
    margin-bottom: 10px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: #bdc3c7;
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer p,
.footer a {
    color: #bdc3c7;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer a:hover {
    color: var(--secondary);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #bdc3c7;
}

.footer-contact i {
    margin-right: 8px;
    color: var(--secondary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        min-height: 200px;
        order: -1;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 15px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 30px 25px;
        gap: 5px;
        transition: var(--transition);
        overflow-y: auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        display: block;
        padding: 14px 16px;
        font-size: 1.1rem;
        border-bottom: 1px solid #f0f0f0;
        border-radius: 0;
    }
    
    .nav-cta {
        text-align: center;
        margin-top: 15px;
        border-radius: 50px;
        padding: 14px !important;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .products-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.7rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        padding: 16px;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
}