/* ========================================= */
/* --- FUENTES Y VARIABLES --- */
/* ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Roboto:wght@300;400;500;700&display=swap');

:root {
/* ========================================= */
/* --- PALETA COMBINADA: AZULES + AMARILLO --- */
/* ========================================= */
--primary: #1A5276;       /* Azul Medio (Principal) */
--primary-dark: #003355;  /* Azul Base (Oscuro) */
--primary-light: #5D8AA8; /* Azul Acero (Brillo) */

--secondary: #2C3E50;     /* Gris Azulado Oscuro (Texto) */

/* ✅ AMARILLO INDUSTRIAL */
--accent: #FFD700;        /* Amarillo Oro/Seguridad */
--accent-hover: #e6c200;  /* Amarillo hover más oscuro */

--light: #f4f6f7;
--dark: #003355;
--grey: #95a5a6;

/* ========================================= */
/* --- TIPOGRAFÍA --- */
/* ========================================= */
--font-heading: 'Montserrat', sans-serif;
--font-body: 'Roboto', sans-serif;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

html {
scroll-behavior: smooth;
}

body {
font-family: var(--font-body);
color: var(--secondary);
background-color: var(--light);
line-height: 1.6;
overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
font-family: var(--font-heading);
text-transform: uppercase;
letter-spacing: 1px;
color: var(--primary-dark);
font-weight: 800;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}

/* ========================================= */
/* --- TOP BAR --- */
/* ========================================= */
.top-bar {
background: var(--primary-dark);
color: #aaa;
font-size: 0.85rem;
padding: 10px 0;
border-bottom: 1px solid #333;
}

.top-flex {
display: flex;
justify-content: space-between;
align-items: center;
}

.top-info span { margin-right: 20px; }
.top-info i, .top-social i { color: var(--accent); margin-right: 5px; }

.top-social a {
color: #fff;
margin-left: 15px;
opacity: 0.7;
}

.top-social a:hover { opacity: 1; color: var(--accent); }

/* ========================================= */
/* --- HEADER & NAV --- */
/* ========================================= */
#main-header {
background: #fff;
box-shadow: 0 4px 20px rgba(0,0,0,0.05);
position: sticky;
top: 0;
z-index: 1000;
padding: 15px 0;
transition: 0.3s;
}

.header-flex {
display: flex;
justify-content: space-between;
align-items: center;
}

/* ========================================= */
/* ✅ LOGO - TAMAÑO 110px --- */
/* ========================================= */
.header-logo {
height: 110px;
width: auto;
display: block;
transition: 0.3s;
object-fit: contain;
}

.header-logo:hover {
transform: scale(1.02);
opacity: 0.95;
}

/* ========================================= */
/* --- NAVEGACIÓN --- */
/* ========================================= */
.nav-links {
display: flex;
gap: 30px;
align-items: center;
}

.nav-links a {
font-family: var(--font-heading);
font-weight: 700;
font-size: 0.95rem;
color: var(--secondary);
position: relative;
text-transform: uppercase;
}

.nav-links a::after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: -5px;
left: 0;
background-color: var(--accent);
transition: 0.3s;
}

.nav-links a:hover::after, .nav-links a.active::after {
width: 100%;
}

.btn-nav {
background: var(--accent);
color: var(--primary-dark) !important;
padding: 10px 25px;
border-radius: 2px;
font-weight: 700;
}

.btn-nav:hover { 
background: var(--accent-hover); 
color: var(--primary-dark) !important;
}
.btn-nav::after { display: none; }

/* Burger Menu */
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background: var(--primary-dark); margin: 5px; transition: 0.3s; }

/* ========================================= */
/* ✅ HERO INTERNO --- */
/* ========================================= */
.page-hero {
height: 50vh;
min-height: 400px;
background: url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover fixed;
position: relative;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
color: #fff;
}

.page-hero .overlay {
position: absolute;
top: 0; left: 0; width: 100%; height: 100%;
background: linear-gradient(135deg, rgba(0, 51, 85, 0.8) 0%, rgba(26, 82, 118, 0.9) 100%);
}

.page-hero .hero-content {
position: relative;
z-index: 2;
animation: fadeInUp 1s ease-out;
}

.page-hero h1 {
font-size: 3.5rem;
margin-bottom: 15px;
text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
color: #fff;
font-weight: 900;
}

.page-hero p {
font-size: 1.2rem;
font-weight: 400;
opacity: 0.95;
}

/* ========================================= */
/* ✅ GRID DE PLANCHAS --- */
/* ========================================= */
.planchas-section {
padding: 80px 0;
background: #fff;
}

.planchas-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 30px;
}

.plancha-card {
background: #fff;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 5px 20px rgba(0,0,0,0.1);
transition: all 0.3s ease;
border: 2px solid transparent;
}

.plancha-card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 40px rgba(0,0,0,0.15);
border-color: var(--accent);
}

.card-image {
position: relative;
height: 300px;
overflow: hidden;
}

.card-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}

.plancha-card:hover .card-image img {
transform: scale(1.1);
}

.image-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to bottom, rgba(0, 51, 85, 0.3) 0%, rgba(0, 51, 85, 0.7) 100%);
opacity: 0;
transition: opacity 0.3s ease;
}

.plancha-card:hover .image-overlay {
opacity: 1;
}

.card-title {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #fff;
font-size: 1.3rem;
font-weight: 800;
text-align: center;
text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
z-index: 2;
opacity: 0;
transition: opacity 0.3s ease;
padding: 0 20px;
}

.plancha-card:hover .card-title {
opacity: 1;
}

.card-footer {
padding: 25px;
text-align: center;
background: #fff;
}

.btn-lista {
display: inline-block;
padding: 12px 35px;
background: var(--accent);
color: var(--primary-dark);
font-family: var(--font-heading);
font-weight: 700;
text-transform: uppercase;
border-radius: 50px;
font-size: 0.9rem;
transition: all 0.3s ease;
border: 2px solid var(--accent);
}

.btn-lista:hover {
background: transparent;
color: var(--accent);
transform: translateY(-3px);
}

/* ========================================= */
/* ✅ CTA SECTION --- */
/* ========================================= */
.cta-planchas {
background: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover fixed;
position: relative;
padding: 100px 0;
text-align: center;
color: #fff;
}

.cta-planchas .overlay {
position: absolute;
top: 0; left: 0; width: 100%; height: 100%;
background: rgba(0, 51, 85, 0.85);
}

.cta-planchas .container {
position: relative;
z-index: 2;
}

.cta-planchas h2 {
font-size: 2.5rem;
margin-bottom: 15px;
color: #fff;
font-weight: 800;
}

.cta-planchas p {
font-size: 1.2rem;
margin-bottom: 40px;
opacity: 0.9;
}

.cta-buttons {
display: flex;
gap: 20px;
justify-content: center;
flex-wrap: wrap;
}

.btn-cta {
display: inline-flex;
align-items: center;
gap: 10px;
padding: 15px 35px;
background: var(--accent);
color: var(--primary-dark);
font-family: var(--font-heading);
font-weight: 700;
text-transform: uppercase;
border-radius: 50px;
font-size: 1rem;
transition: all 0.3s ease;
border: 2px solid var(--accent);
}

.btn-cta:hover {
background: transparent;
color: var(--accent);
transform: translateY(-3px);
}

.btn-cta.btn-secondary {
background: transparent;
color: #fff;
border-color: #fff;
}

.btn-cta.btn-secondary:hover {
background: #fff;
color: var(--primary-dark);
}

/* ========================================= */
/* --- FOOTER --- */
/* ========================================= */
footer { 
background: var(--primary-dark); 
color: #fff; 
padding-top: 80px; 
}

.footer-grid {
display: grid;
grid-template-columns: 1.5fr 1.5fr 1fr;
gap: 50px;
padding-bottom: 60px;
border-bottom: 1px solid #333;
}

.footer-logo {
margin-bottom: 20px;
}

.footer-logo-img {
height: 80px;
width: auto;
display: block;
transition: 0.3s;
}

.footer-logo-img:hover {
transform: scale(1.05);
}

.footer-col p { color: #aaa; margin-bottom: 20px; font-size: 0.95rem; }

.footer-legal span {
background: #333;
padding: 5px 10px;
font-size: 0.8rem;
border-radius: 4px;
color: #fff;
}

.footer-col h3 {
color: #fff;
font-size: 1.1rem;
margin-bottom: 25px;
position: relative;
padding-bottom: 10px;
font-family: var(--font-heading);
font-weight: 700;
}

.footer-col h3::after {
content: '';
position: absolute;
bottom: 0; left: 0; width: 40px; height: 3px;
background: var(--accent);
}

.contact-list li {
margin-bottom: 15px;
color: #aaa;
font-size: 0.95rem;
display: flex;
align-items: center;
gap: 10px;
}

.contact-list li i { color: var(--accent); width: 20px; }

.social-circle-container { display: flex; gap: 15px; }

.social-circle-container a {
width: 45px; height: 45px;
border-radius: 50%;
background: #333;
color: #fff;
display: flex;
justify-content: center;
align-items: center;
font-size: 1.2rem;
transition: 0.3s;
border: 2px solid transparent;
}

.social-circle-container a:hover {
background: var(--accent);
color: var(--primary-dark);
border-color: var(--accent-hover);
transform: translateY(-5px);
}

.small-text { font-size: 0.8rem; color: #555; margin-top: 20px; }

.footer-bottom {
text-align: center;
padding: 20px;
background: #002244;
color: #aaa;
font-size: 0.85rem;
}

/* ========================================= */
/* --- ANIMACIONES --- */
/* ========================================= */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

/* ========================================= */
/* --- RESPONSIVE --- */
/* ========================================= */
@media screen and (max-width: 900px) {
.page-hero h1 { font-size: 2.5rem; }

/* ✅ Logo responsive */
.header-logo { 
height: 80px; 
}

.footer-logo-img { 
height: 60px; 
margin: 0 auto 20px auto; 
}

.planchas-grid {
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 25px;
}

.card-image {
height: 250px;
}

.card-title {
font-size: 1.1rem;
}

.nav-links {
position: absolute;
right: 0px;
height: 90vh;
top: 8vh;
background-color: #fff;
display: flex;
flex-direction: column;
align-items: center;
width: 70%;
transform: translateX(100%);
transition: transform 0.5s ease-in;
box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.nav-links li { opacity: 0; margin: 20px 0; }
.burger { display: block; }
.nav-active { transform: translateX(0%); }

@keyframes navLinkFade {
from { opacity: 0; transform: translateX(50px); }
to { opacity: 1; transform: translateX(0px); }
}
}

@media screen and (max-width: 600px) {
.planchas-grid {
grid-template-columns: 1fr;
}

.card-image {
height: 280px;
}

.card-title {
opacity: 1;
font-size: 1.2rem;
}

.image-overlay {
opacity: 0.5;
}

.cta-planchas h2 {
font-size: 1.8rem;
}

.cta-buttons {
flex-direction: column;
align-items: center;
}

.btn-cta {
width: 100%;
max-width: 300px;
justify-content: center;
}
}

/* ========================================= */
/* --- MODAL DE PLANCHAS --- */
/* ========================================= */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #fff;
    margin: 50px auto;
    width: 90%;
    max-width: 900px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideDown 0.4s ease;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    padding: 30px;
    text-align: center;
    border-radius: 8px 8px 0 0;
}

.modal-header h2 {
    font-size: 2rem;
    margin: 0;
    font-weight: 800;
    text-transform: uppercase;
}

.modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
}

.tabla-section { margin-bottom: 40px; }
.tabla-section:last-child { margin-bottom: 0; }

.tabla-section h3 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent);
    font-weight: 700;
}

.tabla-productos {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.tabla-productos thead {
    background: var(--primary-dark);
    color: #fff;
}

.tabla-productos th {
    padding: 15px;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.tabla-productos td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
}

.tabla-productos tbody tr { transition: background 0.2s; }
.tabla-productos tbody tr:hover { background: #f5f5f5; }
.tabla-productos tbody tr:nth-child(even) { background: #f9f9f9; }
.tabla-productos tbody tr:nth-child(even):hover { background: #f0f0f0; }

.modal-close {
    position: absolute;
    top: 15px; right: 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255,255,255,0.2);
    color: var(--accent);
    transform: rotate(90deg);
}

.btn-lista {
    cursor: pointer;
    border: none;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Modal */
@media screen and (max-width: 768px) {
    .modal-content { margin: 20px auto; width: 95%; }
    .modal-header { padding: 20px; }
    .modal-header h2 { font-size: 1.5rem; }
    .modal-body { padding: 20px; max-height: 65vh; }
    .tabla-productos { font-size: 0.85rem; }
    .tabla-productos th, .tabla-productos td { padding: 10px; }
    .modal-close { top: 10px; right: 10px; font-size: 2rem; }
}