/* =====================================================================
   Comercializadora Zarabozo — main.css
   Shared styles for the business website.
   ===================================================================== */

/* --- Reset / base ---------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

/* =====================================================================
   INDEX.HTM — full-page frame layout (replaces HTML4 <frameset>)
   ===================================================================== */

body.layout-page {
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.layout-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.layout-header {
    height: 152px;
    flex-shrink: 0;
    overflow: hidden;
}

.layout-header iframe {
    display: block;
    width: 100%;
    height: 152px;
    border: none;
}

.layout-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.layout-nav {
    width: 260px;
    flex-shrink: 0;
    overflow: hidden;
}

.layout-nav iframe {
    display: block;
    width: 260px;
    height: 100%;
    border: none;
}

.layout-main {
    flex: 1;
    overflow: auto;
}

.layout-main iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}

/* =====================================================================
   I_LOGO.HTM — header / logo panel
   ===================================================================== */

body.logo-page {
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

body.logo-page img {
    max-height: 90%;
}

/* =====================================================================
   I_BOTONES.PHP — left navigation sidebar
   ===================================================================== */

/* Spacing mirrors the original layout: 8px body margin plus 1em <p> margins
   around each button. */
body.nav-page {
    background-color: #003300;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: medium;
    padding: 1em 0 0 8px;
}

.nav-buttons {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-buttons li {
    margin-bottom: 1em;
}

.nav-buttons a img {
    display: block;
    border: none;
}

.nav-counter {
    color: #006633;
    font-size: small;
    font-weight: bold;
    margin-top: 6px;
}

/* =====================================================================
   CONTENT PAGES — computo, oficina, limpieza, etc.
   ===================================================================== */

/* Spacing on content pages reproduces the original HTML4 layout: blocks with
   collapsing 1em margins, indents in 40px steps (former <blockquote> nesting),
   and blank lines from former <p>&nbsp;</p> spacers. */
body.content-page {
    background-color: #003300;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: medium;
    color: #fff;
    margin: 8px;
}

/* links inside content pages */
body.content-page a {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: medium;
    font-weight: bold;
    color: #3399ff;
    text-decoration: none;
}

body.content-page a:link    { color: #0099ff; }
body.content-page a:visited { color: #3399ff; }
body.content-page a:hover   { color: #fff; }
body.content-page a:active  { color: #3399ff; }

/* ---- Section title image (e.g. tit_computo.jpg) ----
   One blank line above and below, as in the original. */
.section-title {
    margin: calc(2em + 1lh) 0;
}

.section-title img {
    display: block;
    margin: 0 auto;
}

/* ---- Section heading line: bullet + large initial + rest of label ----
   Kept in inline flow on purpose: as a flex container, the text after the
   .initial span becomes its own flex item and the gap splits the word. */
.section-heading {
    color: #fff;
    font-size: medium;
    font-weight: bold;
    margin: 1em 0 1em 40px;
}

/* The margin plus the whitespace in the markup recreate the original 11px gap
   (a space and a background-colored dot). */
.section-heading .bullet,
.contact-section .heading .bullet {
    margin-right: 6px;
}

.section-heading .initial {
    font-size: large;
}

/* ---- Product image rows ----
   Flex so the whitespace between <img> tags in the markup adds no gaps; the
   margins mirror the original hspace="20" (first image) and hspace="30". */
.product-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin: 1em 0;
}

.product-row img {
    margin: 0 30px;
}

.product-row img:first-child {
    margin: 0 20px;
}

/* ---- Brand label (orange smaller text below product rows) ---- */
.brand-label {
    color: #ff9900;
    font-size: smaller;
    font-weight: bold;
    margin: 1em 0 1em 80px;
}

/* ---- Blank line between sections (former <p>&nbsp;</p>) ---- */
.section-gap {
    height: 1lh;
    margin: 1em 0;
}

/* =====================================================================
   CONTACTO.HTM — contact page overrides
   ===================================================================== */

body.contact-page a {
    font-size: medium;
    color: #3399ff;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    text-decoration: none;
}

body.contact-page a:link    { color: #3399ff; text-decoration: none; }
body.contact-page a:visited { color: #3399ff; text-decoration: none; }
body.contact-page a:hover   { color: #fff;    text-decoration: underline; }
body.contact-page a:active  { color: #3399ff; text-decoration: none; }

.contact-section .heading {
    color: #ff9900;
    font-weight: bold;
    margin: 1em 0 1em 40px;
}

.contact-section .heading .initial {
    font-size: large;
}

.contact-section .detail {
    font-size: medium;
    margin: 1em 0 1em 80px;
}

.contact-section .detail.link {
    margin-left: 120px;
}

/* =====================================================================
   DIRECTORIO.HTM — directory page overrides
   ===================================================================== */

body.directorio-page a {
    font-size: smaller;
    color: #fff;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    text-decoration: none;
}

body.directorio-page a:link    { color: #fff; text-decoration: none; }
body.directorio-page a:visited { color: #fff; text-decoration: none; }
body.directorio-page a:hover   { color: #009933; text-decoration: underline; }
body.directorio-page a:active  { color: #fff; text-decoration: none; }

/* =====================================================================
   CLIENTES.HTM — client list
   ===================================================================== */

.client-list {
    list-style: none;
    margin: 0 0 0 2em;
    padding: 0;
}

.client-list li {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 0.5em;
    color: #fff;
    font-weight: bold;
}

.client-list li img {
    flex-shrink: 0;
}

.client-list li .initial {
    font-size: large;
}

.client-list li .rest {
    font-size: medium;
}

.client-list li .detail {
    font-size: smaller;
}
