/* ========== RESET Y ESTILOS BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== HEADER ========== */
header.header {
    background-color: rgba(0, 61, 122, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    max-height: 60px;
    width: auto;
}

/* ========== MENÚ ========== */
.menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.menu-item {
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.menu-item:hover {
    color: #FFFFFF;
    border-bottom-color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* HAMBURGER BUTTON */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 24px;
    cursor: pointer;
    padding: 8px 12px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    transform: scale(1.1);
}

.hamburger-btn.active {
    color: #FFD700;
}

/* ========== REDES SOCIALES ========== */
.redes-sociales {
    display: flex;
    gap: 12px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.5);
}

.red-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.red-social:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.9);
}

.red-social svg {
    width: 16px;
    height: 16px;
}

/* ========== HERO SECTION ========== */
.hero-section {
    position: relative;
    height: 750px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    margin-top: 0;
    padding-top: 76px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #0066cc;
    color: white;
}

.btn-primary:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* ========== NOSOTROS ========== */
.nosotros-section {
    padding: 100px 0;
    background-color: #FFFFFF;
}

.nosotros-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.nosotros-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nosotros-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.nosotros-card.mision {
}

.nosotros-card.vision {
}

.nosotros-card h3 {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 700;
}

.nosotros-card p {
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
    text-align: justify;
}

.nosotros-icon {
    width: 45px;
    height: 45px;
    background-color: #0066CC;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 22px;
}

/* ========== SEGMENTOS ========== */
.segmentos-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
}

.segmentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.segmento-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.segmento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.segmento-imagen {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.segmento-content {
    padding: 25px;
}

.segmento-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #1a1a1a;
}

.segmento-content .subtitulo {
    font-size: 0.9rem;
    color: #0066cc;
    font-weight: 600;
    margin-bottom: 10px;
}

.segmento-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* ========== PRODUCTOS ========== */
.productos-section {
    padding: 80px 0;
    background-color: white;
}

.productos-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.productos-imagen {
    width: 100%;
}

.productos-imagen img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.productos-texto > p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.productos-lista {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.productos-lista li {
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-size: 0.95rem;
    color: #1a1a1a;
}

.productos-lista li::before {
    content: '✓';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #0066cc;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
}

/* ========== SERVICIOS ========== */
.servicios-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.servicios-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.servicios-imagen {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.servicios-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.servicios-formulario > p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.form-row .form-group.col-12 {
    grid-column: 1 / -1;
}

.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.85rem;
    background-color: white;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* ========== TAG INPUT ========== */
.tag-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tag-input-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e3f2fd;
    color: #1565c0;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #bbdefb;
}

.product-tag-remove {
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    color: #1565c0;
    opacity: 0.7;
}

.product-tag-remove:hover {
    opacity: 1;
}

form .btn {
    width: 100%;
    margin-top: 10px;
    grid-column: 1 / -1;
}

/* ========== RESPONSIVE 768px ========== */
@media (max-width: 768px) {
    /* HEADER */
    .header-content {
        justify-content: space-between;
    }
    
    .hamburger-btn {
        display: flex;
    }
    
    .menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 0;
        background-color: rgba(0, 61, 122, 0.95);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .menu.active {
        max-height: 500px;
        padding: 20px 0;
    }
    
    .menu-item {
        padding: 12px 20px;
        border-bottom: none;
        border-right: 3px solid transparent;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
        transition: all 0.3s ease;
    }
    
    .menu-item:hover {
        border-right-color: #FFD700;
        background-color: rgba(0, 82, 163, 0.3);
        padding-left: 30px;
    }
    
    .redes-sociales {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        margin-left: 0;
        padding: 15px 20px;
        padding-left: 20px;
    }
    
    /* HERO */
    .hero-section {
        height: 500px;
        padding-top: 76px;
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    /* NOSOTROS */
    .nosotros-section {
        padding: 60px 0;
    }
    
    .nosotros-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .nosotros-card {
        padding: 30px;
    }
    
    /* SEGMENTOS */
    .segmentos-grid {
        grid-template-columns: 1fr;
    }
    
    /* PRODUCTOS */
    .productos-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .productos-texto h2 {
        font-size: 1.5rem;
    }
    
    /* SERVICIOS */
    .servicios-section {
        padding: 60px 0;
    }
    
    .servicios-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .servicios-imagen img {
        max-height: 300px;
        object-fit: cover;
    }
    
    /* FORMULARIO */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-group {
        grid-column: 1 / -1 !important;
    }
    
    .form-row .form-group.col-6 {
        grid-column: 1 / -1;
    }
    
    /* CONTENEDOR */
    .container {
        padding: 0 15px;
    }
}

/* ========== RESPONSIVE 480px ========== */
@media (max-width: 480px) {
    /* HEADER */
    .logo {
        max-height: 45px;
    }
    
    /* HERO */
    .hero-section {
        height: 400px;
        padding-top: 70px;
    }
    
    .hero-content h1 {
        font-size: 1.2rem;
    }
    
    .hero-content p {
        font-size: 0.85rem;
    }
    
    /* SECCIONES */
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    /* TARJETAS */
    .nosotros-card,
    .segmentos-card {
        padding: 20px;
    }
    
    .productos-lista li {
        font-size: 0.9rem;
    }
    
    .productos-lista li::before {
        width: 20px;
        height: 20px;
        line-height: 20px;
        margin-right: 10px;
    }
}

/* ========== BLOG SECTION / BLOG GRID ========== */
/* ========== PRODUCTOS ========== */
.productos-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.producto-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.producto-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f0f0f0;
}

.producto-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.producto-card:hover .producto-card-image img {
    transform: scale(1.05);
}

.producto-card-content {
    padding: 20px;
}

.producto-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.producto-card-fabricante {
    color: #0066cc;
    font-weight: 600;
}

.producto-card-catalogo {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 0.9rem;
}

.producto-card-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    text-align: justify;
}

@media (max-width: 768px) {
    .productos-section {
        padding: 60px 0;
    }
    .productos-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== BLOG ========== */
.blog-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.blog-list-page {
    padding: 140px 0 80px;
    background-color: #f8f9fa;
    min-height: 60vh;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 25px;
}

.blog-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #999;
}

.blog-card-date {
    font-weight: 600;
}

.blog-card-author {
    color: #0066cc;
}

.blog-card-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
    line-height: 1.3;
}

.blog-card-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* Blog responsive */
@media (max-width: 768px) {
    .blog-section {
        padding: 60px 0;
    }

    .blog-list-page {
        padding: 120px 0 60px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-card-content {
        padding: 20px;
    }

    .blog-card-content h3 {
        font-size: 1.1rem;
    }
}

/* ========== FOOTER ========== */
.footer {
    background-color: #003D7A;
    color: #fff;
    padding-top: 0px;
    padding-bottom: 0;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFD700;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #FFD700;
}

.footer-redes {
    display: flex;
    gap: 15px;
}

.footer-redes a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 215, 0, 0.1);
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-redes a:hover {
    background-color: #FFD700;
    color: #003D7A;
}

.footer-redes svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-bottom {
    background-color: #002652;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* FOOTER RESPONSIVE */
@media (max-width: 768px) {
    .footer {
        padding-top: 40px;
        margin-top: 60px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding-top: 30px;
        margin-top: 40px;
    }
    
    .footer-content {
        gap: 25px;
        margin-bottom: 25px;
    }
    
    .footer-section h4 {
        font-size: 0.95rem;
    }
    
    .footer-section ul li {
        font-size: 0.9rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* ========== PÁGINA DE PRODUCTOS ========== */
.page-header-section {
    padding: 100px 0 20px;
    background: #ffffff;
    color: #007a16; 
    text-align: center; 
    border-bottom: 1px solid #e5e7eb;
}

.page-header-section h1 {
    font-size: 1.5rem; 
    margin-bottom: 15px; 
    color: #003d7a;
}

.page-header-section p {
    font-size: 1.1rem; 
    color: #4b5563;
}

.productos-page-section {
    padding: 60px 0;
}

.seccion-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #0066cc;
}

.seccion-header h2 {
    font-size: 1.6rem;
    color: #003d7a;
}

.categoria-header {
    font-size: 1.1rem;
    color: #0066cc;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .page-header-section {
        padding: 120px 0 40px;
    }
    .page-header-section h1 {
        font-size: 1.8rem;
    }
}
