/* Tipografías Custom */
@font-face {
    font-family: 'Merriweather Sans';
    src: url('../fonts/MerriweatherSans-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Merriweather Sans';
    src: url('../fonts/MerriweatherSans-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'Merriweather Sans';
    src: url('../fonts/MerriweatherSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Merriweather Sans';
    src: url('../fonts/MerriweatherSans-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Merriweather Sans';
    src: url('../fonts/MerriweatherSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Merriweather Sans';
    src: url('../fonts/MerriweatherSans-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'Merriweather Sans';
    src: url('../fonts/MerriweatherSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Merriweather Sans';
    src: url('../fonts/MerriweatherSans-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
}

@font-face {
    font-family: 'Merriweather Sans';
    src: url('../fonts/MerriweatherSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Merriweather Sans';
    src: url('../fonts/MerriweatherSans-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'Merriweather Sans';
    src: url('../fonts/MerriweatherSans-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Merriweather Sans';
    src: url('../fonts/MerriweatherSans-ExtraBoldItalic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
}

:root {
    --navy: #002868;
    --navy-light: #0a3d8c;
    --tech-blue: #00A8E8;
    --white: #ffffff;
    --off-white: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-600: #475569;
    --slate-900: #0f172a;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.02);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.05);
    --radius-lg: 24px;
    --radius-md: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Merriweather Sans', sans-serif;
    color: var(--slate-900);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Tipografías */
h1, h2, h3, h4 { font-weight: 800; color: var(--navy); line-height: 1.1; }
p { color: var(--slate-600); }

/* Contenedor Genérico */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Botones Premium */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary { background: var(--navy); color: white; }
.btn-primary:hover { background: var(--tech-blue); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 168, 232, 0.2); }

.btn-outline { border: 2px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: white; }

/* Secciones */
section { padding: 100px 0; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.8rem; margin-bottom: 15px; }
.section-title p { max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

/* Header/Nav Styles pre-definidos */

/* Grid de Productos & Sistema de Modales */
.products-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 30px; 
    margin-top: 50px; 
}

.prod-card { 
    background: white; 
    border-radius: 25px; 
    padding: 40px; 
    text-align: center; 
    border: 1px solid var(--slate-100); 
    transition: 0.4s; 
    cursor: pointer; 
    position: relative; 
}

.prod-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(0,40,104,0.1); 
    border-color: var(--tech-blue); 
}

.prod-card::before { 
    content: ''; 
    position: absolute; 
    inset: 0; 
    border-radius: 25px; 
    background: linear-gradient(135deg, rgba(0,190,250,0.05) 0%, transparent 100%); 
    opacity: 0; 
    transition: 0.4s; 
}

.prod-card:hover::before { opacity: 1; }

.prod-card img { 
    width: 100%; 
    height: 200px; 
    object-fit: contain; 
    margin-bottom: 20px; 
}

.prod-card h4 { 
    color: var(--navy); 
    margin-bottom: 15px; 
    font-size: 1.1rem; 
}

.btn-detail { 
    font-size: 0.85rem; 
    font-weight: 800; 
    color: var(--tech-blue); 
    text-transform: uppercase; 
}

/* Modal de Detalle de Producto */
.p-modal-overlay { 
    position: fixed; 
    inset: 0; 
    background: rgba(0,0,0,0.85); 
    z-index: 9999; 
    display: none; 
    align-items: center; 
    justify-content: center; 
    padding: 20px; 
    backdrop-filter: blur(8px);
}

.p-modal-card { 
    background: white; 
    width: 100%; 
    max-width: 1150px; 
    border-radius: 30px; 
    position: relative; 
    overflow: hidden; 
    animation: zoomIn 0.3s;
    margin: auto;
}

@keyframes zoomIn { 
    from { opacity: 0; transform: scale(0.95); } 
    to { opacity: 1; transform: scale(1); } 
}

.p-close { 
    position: absolute; 
    top: 20px; 
    right: 20px; 
    background: var(--slate-100); 
    border: none; 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    cursor: pointer; 
    z-index: 10; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.p-modal-content { 
    display: grid; 
    grid-template-columns: 1fr 1.2fr; 
}

.p-modal-img { 
    background: var(--off-white); 
    padding: 60px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-right: 1px solid var(--slate-100); 
}

.p-modal-img img { 
    max-width: 100%; 
    height: auto; 
}

.p-modal-info { 
    padding: 60px; 
    display: flex; 
    flex-direction: column; 
    max-height: 85vh; 
}

.p-modal-scroll { 
    overflow-y: auto; 
    padding-right: 15px; 
}

.p-modal-info h2 { 
    font-size: 2rem; 
    color: var(--navy); 
    margin-bottom: 15px; 
    font-weight: 800; 
    border-left: 5px solid var(--tech-blue); 
    padding-left: 15px; 
}

.p-modal-desc { 
    color: var(--slate-600); 
    line-height: 1.8; 
    font-size: 1rem; 
}

.p-modal-desc h3 { 
    color: var(--navy); 
    font-size: 1.2rem; 
    margin: 25px 0 10px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.p-modal-desc p { margin-bottom: 15px; }

.p-modal-actions { 
    margin-top: 30px; 
    padding-top: 20px; 
    border-top: 1px solid var(--slate-100); 
}

.wa-btn { 
    background: #25d366; 
    color: white; 
    padding: 14px 28px; 
    border-radius: 12px; 
    text-decoration: none; 
    font-weight: 700; 
    display: inline-flex; 
    align-items: center; 
    gap: 12px; 
    transition: 0.3s; 
    width: fit-content; 
    justify-content: center; 
}

.wa-btn:hover { 
    background: #128c7e; 
    transform: scale(1.02); 
}

.wa-btn svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .p-modal-content { grid-template-columns: 1fr; }
    .p-modal-img { padding: 40px; border-right: none; border-bottom: 1px solid var(--slate-100); }
    .p-modal-info { padding: 30px; max-height: none; }
    .p-modal-card { border-radius: 20px; }
}
