/* HETMO INFORMÁTICA - Manual de Marca */
/* Colores Corporativos */
:root {
    --rojo-principal: #BF1818;
    --blanco: #FFFFFF;
    --gris-oscuro: #2F2F2F;
    --azul-petroleo: #1F3C4C;
    --rojo-oscuro: #710F0F;
    --rojo-muy-oscuro: #511B15;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--gris-oscuro);
    line-height: 1.6;
}

/* Tipografía según manual */
h1, h2, h3, .btn, nav, input, textarea, button, select {
    font-family: 'Montserrat', sans-serif;
}

h1, h2, h3, .btn {
    font-weight: 600; /* Semibold */
}

/* Header */
header {
    background: var(--blanco);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo img {
    height: 60px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--gris-oscuro);
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.3s;
}

nav a:hover,
nav a.active {
    color: var(--rojo-principal);
}

/* Hero Section */
.hero {
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, var(--rojo-principal) 0%, var(--rojo-oscuro) 50%, var(--rojo-muy-oscuro) 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-contacto {
    position: relative;
    height: 200px;
    background: linear-gradient(to right, #2a3f4f 0%, #1a2a35 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-contacto::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 60%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 200"%3E%3Cpath fill="%23ffffff" opacity="0.05" d="M0,0 L800,0 L800,200 L0,200 Z"/%3E%3C/svg%3E');
    opacity: 0.3;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 500"><rect fill="%231F3C4C" opacity="0.6" width="1200" height="500"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    color: var(--blanco);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero .tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Productos Grid */
.productos-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

/* 5 productos en una fila para pantallas mayores a 768px */
@media (min-width: 768px) {
    .productos-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.producto-card {
    background: var(--blanco);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.producto-card:hover {
    transform: translateY(-5px);
}

.producto-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.producto-card h3 {
    color: var(--rojo-principal);
    padding: 1.5rem 1rem 0.5rem;
    font-size: 1.3rem;
    margin-bottom: 0;
}

.producto-subtitulo {
    color: #888;
    font-size: 0.9rem;
    padding: 0 1rem;
    margin-top: 0.2rem;
    margin-bottom: 0.5rem;
}

.producto-card .info-btn {
    display: inline-block;
    margin: 0.3rem 1rem 0.8rem;
    padding: 0.4rem 0.8rem;
    background: var(--rojo-principal);
    color: var(--blanco);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    transition: background 0.3s;
}

.producto-card .info-btn:hover {
    background: var(--rojo-oscuro);
}

/* Noticias Grid */
.noticias-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.noticias-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 2rem;
}

/* En pantallas menores a 768px, una columna */
@media (max-width: 768px) {
    .noticias-grid {
        grid-template-columns: 1fr;
    }
}

.noticia-card {
    background: var(--blanco);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.noticia-card:hover {
    transform: translateY(-5px);
}

.noticia-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.noticia-content {
    padding: 1.5rem;
}

.noticia-card h3 {
    color: var(--gris-oscuro);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    font-weight: 600;
}

.noticia-subtitulo {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.noticia-descripcion {
    color: var(--gris-oscuro);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.continuar-btn {
    display: inline-block;
    width: 100%;
    padding: 0.8rem;
    background: var(--gris-oscuro);
    color: var(--blanco);
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.3s;
}

.continuar-btn:hover {
    background: var(--rojo-principal);
}

/* Página de Noticia Individual */
.hero-noticia {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.hero-noticia img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-noticia-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    display: flex;
    align-items: flex-end;
    padding: 3rem 2rem;
}

.hero-noticia-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-noticia-content h1 {
    color: var(--blanco);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.noticia-subtitulo-hero {
    color: var(--blanco);
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
}

.noticia-completa {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.noticia-header {
    margin-bottom: 2rem;
}

.volver-btn,
.volver-btn-bottom {
    display: inline-block;
    color: var(--rojo-principal);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.volver-btn:hover,
.volver-btn-bottom:hover {
    color: var(--rojo-oscuro);
}

.noticia-body {
    line-height: 1.8;
    color: var(--gris-oscuro);
}

.noticia-body p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.noticia-body p strong {
    color: var(--rojo-principal);
}

.noticia-galeria {
    margin: 3rem 0;
}

.galeria-placeholder {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.galeria-placeholder img {
    width: 100%;
    height: auto;
    display: block;
}

.noticia-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
    text-align: center;
}

@media (max-width: 768px) {
    .hero-noticia {
        height: 300px;
    }
    
    .hero-noticia-content h1 {
        font-size: 1.8rem;
    }
    
    .noticia-subtitulo-hero {
        font-size: 0.95rem;
    }
    
    .noticia-body p {
        font-size: 1rem;
    }
}

/* Section Styles */
.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    color: var(--gris-oscuro);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.section.bg-dark {
    background: linear-gradient(135deg, var(--azul-petroleo) 0%, var(--gris-oscuro) 100%);
    color: var(--blanco);
    max-width: 100%;
}

.section.bg-dark h2 {
    color: var(--blanco);
}

/* Iconos de productos */
.icon-circle {
    width: 80px;
    height: 80px;
    background: var(--rojo-principal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

/* Mapa Mundial con Marcadores */
.map-container {
    position: relative;
    max-width: 100%;
    margin: 3rem auto;
    display: inline-block;
    width: 100%;
}

.map-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.map-marker {
    position: absolute;
    cursor: pointer;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.marker-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--gris-oscuro);
    border-radius: 50%;
    color: var(--blanco);
    font-size: 20px;
    font-weight: 300;
    transition: all 0.3s ease;
}

.marker-dot::before {
    content: '+';
    line-height: 1;
}

.map-marker:hover .marker-dot {
    background: var(--rojo-principal);
    transform: scale(1.15);
}

.marker-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    padding: 0.5rem 1rem;
    background: var(--gris-oscuro);
    color: var(--blanco);
    font-size: 0.9rem;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.marker-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--gris-oscuro);
}

.map-marker:hover .marker-tooltip {
    opacity: 1;
    visibility: visible;
    margin-bottom: 15px;
}

/* Footer */
footer {
    background: var(--gris-oscuro);
    color: var(--blanco);
    padding: 1.5rem 2rem 0.3rem;
    font-size: 0.85rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 0 2rem;
    margin-bottom: 1rem;
}

.footer-section h3 {
    color: var(--rojo-principal);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-section p {
    line-height: 1.4;
    margin-bottom: 0.2rem;
}

.footer-section a {
    color: var(--blanco);
    text-decoration: none;
    display: block;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.footer-section a:hover {
    color: var(--rojo-principal);
}

.footer-enlaces .enlaces-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem 0.8rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
}

/* Formulario de Contacto */
.contacto-section {
    padding: 4rem 2rem;
}

.contacto-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.contacto-info h2 {
    text-align: left;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--gris-oscuro);
}

.contacto-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 2rem;
}

.info-block {
    margin-bottom: 2rem;
    color: #666;
}

.info-block strong {
    color: var(--gris-oscuro);
}

.contact-form {
    max-width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--gris-oscuro);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--rojo-principal);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.checkbox-group {
    margin: 1rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: auto;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--rojo-principal);
    text-decoration: underline;
}

.privacy-text {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.btn-submit {
    background: var(--gris-oscuro);
    color: var(--blanco);
    padding: 0.9rem 3rem;
    border: none;
    border-radius: 0;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
}

.btn-submit:hover {
    background: var(--rojo-principal);
}

/* Mapa */
.mapa-section {
    padding: 0;
    margin: 0;
}

.mapa-section iframe {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .tagline {
        font-size: 1.2rem;
    }

    .contacto-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contacto-info h2 {
        font-size: 2rem;
    }
}
