/* ================================================================
   Oficina Tributaria — site.css
   Migración limpia desde Joomla. Idéntico al diseño original.
   ================================================================ */

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

input, input:hover, button, button:hover, select, select:hover,
textarea, textarea:hover, a, a:hover, a:focus, a:active,
img, img:hover, img:focus { outline: 0; }

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 18px;
    color: #333;
    background-color: #fff;
}

body.site {
    border-top: 0 !important;
    padding: 0 !important;
    background-color: #fff !important;
}

body, body p { line-height: 160%; }

a { color: #C53535; text-decoration: none; }
a:hover, a:focus { color: #9a2828; text-decoration: underline; }

img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }

.clearfix::before, .clearfix::after { display: table; content: ""; line-height: 0; }
.clearfix::after { clear: both; }

/* ── Container ────────────────────────────────────────────────── */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 10px;
}

/* ================================================================
   HEADER
   Franja carta-aérea en el BORDE SUPERIOR (barra-carta-inf.jpg)
   Logo a la izquierda, fondo decorativo centrado (logo-2-fdo.jpg)
   ================================================================ */
.header {
    background:
        url(../img/portada/barra-carta-inf.jpg) repeat-x scroll 0 0,
        url(../img/portada/logo-2-fdo.jpg) no-repeat scroll center 19px;
    background-color: #E5E5E5;
    padding: 0;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.header-inner {
    background: transparent;
    padding-top: 19px;    /* comienza debajo de la franja carta-aérea (19px) */
    padding-bottom: 7px;
    min-height: 137px;    /* 19px franja + 111px logo + 7px padding-bottom */
    position: relative;
}

/* Logo: imagen de fondo sobre div (no es enlace) */
.header .brand {
    background: url(../img/portada/logo-principal.png) no-repeat scroll 0 0 transparent;
    width: 226px;
    height: 111px;
    display: block;
    float: left;
    cursor: default;
}

/* Email superior derecho con ícono de sobre */
.custommail-top {
    float: right;
    position: relative;
    z-index: 2;
}

.custommail-top a {
    background: url(../img/portada/ico-sobre-top.png) no-repeat scroll 0 center transparent;
    font-size: 18px;
    padding: 10px 0 10px 35px;
    margin-top: 29px;
    display: block;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.custommail-top a:hover { color: #C53535; text-decoration: underline; }

/* ================================================================
   NAVEGACIÓN PRINCIPAL — barra roja #C53636
   ================================================================ */
.menu-principal {
    background: #C53636 !important;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.navigation {
    list-style: none;
    padding: 0 !important;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.navigation li { margin: 0; padding: 0; }

.navigation li a {
    display: block;
    padding: 20px;
    border-radius: 0 !important;
    font-size: 17px;
    color: #fff;
    text-decoration: none;
    line-height: 1;
}

.navigation li a:hover      { background: #A92E2E !important; text-decoration: none; }
.navigation li.active a     { background: #A92E2E !important; }

/* ================================================================
   BANNER PRINCIPAL
   Wrapper: fondo gris claro + sobe-top.png en el borde inferior
   Slider portada: fondo azul · Slider interior: imágenes full-width
   ================================================================ */
.banner-principal {
    background: url(../img/portada/sobe-top.png) repeat-x scroll 0 bottom #E5E5E5 !important;
    padding-bottom: 16px;
    margin-bottom: 0;
}

/* ── Slider ── */
.ot-slider {
    position: relative;
    overflow: hidden;
    background: #2B6CB0; /* azul para portada */
}

/* Cada slide está oculto por defecto */
.ot-slide {
    display: none;
}

.ot-slide.active {
    display: block;
}

/* ── Portada: dos columnas sobre azul ── */
.slide-row {
    display: flex;
    align-items: flex-start;
    padding: 18px 0 40px; /* 40px para que los dots no tapen el contenido */
}

.slide-text {
    flex: 0 0 56%;
    padding: 12px 20px 12px 0;
    color: #fff;
}

.slide-text h2 {
    font-size: 22px;
    font-weight: bold;
    margin: 10px 0 10px;
    color: #fff;
    line-height: 1.2;
}

.slide-text p {
    font-size: 13px;
    line-height: 1.7;
    color: #fff;
    margin: 0;
}

.slide-photo {
    flex: 0 0 44%;
}

.slide-photo img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.25);
}

/* ── Interior: imagen full-width ── */
.slide-banner-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
}

/* ── Dots de navegación ── */
.ot-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.ot-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    border: 2px solid rgba(255,255,255,0.9);
    padding: 0;
    cursor: pointer;
    transition: background 0.3s;
}

.ot-dot.active,
.ot-dot:hover { background: #fff; }

/* ================================================================
   CONTENIDO INTERIOR
   ================================================================ */
.interior-content {
    margin-top: 20px;
    margin-bottom: 20px;
}

.row-fluid { width: 100%; }
.row-fluid::before, .row-fluid::after { display: table; content: ""; line-height: 0; }
.row-fluid::after { clear: both; }

.span12 { float: left; width: 100%; }

/* ── Layout dos columnas: contenido (span9) izq. + aside (span3) der. ── */
#content.span9 {
    float: left;
    width: 73%;
    margin-right: 2%;
}

#aside.span3 {
    float: left;
    width: 25%;
}

/* ── Sidebar Nuestros Cursos ── */
.sidebar-nav .moduletable {
    /* sin borde, sólo contenido limpio */
}

.sidebar-title {
    color: #555555;
    font-size: 15px;
    font-weight: bold;
    margin: 0 0 10px;
    padding: 0;
    background: none;
    border: none;
    letter-spacing: 0;
}

.sidebar-course-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-course-list li {
    border-bottom: none;
    padding: 4px 0;
}

.sidebar-course-list li a {
    display: block;
    font-size: 11px;
    color: #999999;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.4;
    padding: 0;
    letter-spacing: 0;
}

.sidebar-course-list li a:hover,
.sidebar-course-list li.active a {
    text-decoration: underline;
    color: #555555;
}

/* ── Artículo de curso ── */
.subheading-category {
    font-size: 18px;
    color: #555555;
    font-weight: normal;
    margin: 0 0 6px;
    display: block;
}

.article-title {
    font-size: 16px;
    color: #C53535;
    font-weight: bold;
    margin: 0 0 14px;
    line-height: 1.3;
    text-transform: uppercase;
}

.article-body {
    font-size: 13px;
    color: #0070c0 !important;
    line-height: 1.6;
}

.article-body,
.article-body p,
.article-body div,
.article-body span,
.article-body ul li,
.article-body ol li,
.article-body strong,
.article-body b,
.article-body .temario {
    color: #0070c0 !important;
}

.article-body p {
    margin: 0 0 8px;
}

.article-body .temario {
    text-align: center;
    letter-spacing: 3px;
    font-weight: bold;
    font-size: 13px;
    margin: 12px 0;
}

.article-body ul {
    margin: 6px 0 10px 18px;
    padding: 0;
}

.article-body ul li {
    margin-bottom: 4px;
    line-height: 1.5;
    font-size: 13px;
}

.article-body strong {
    font-weight: bold;
}

.section-heading {
    font-size: 22px;
    color: #C53535;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
    margin: 0 0 20px;
}

.blog-intro {
    font-size: 15px;
    line-height: 160%;
    color: #333;
    margin-bottom: 16px;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.card-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.card-item:hover { border-color: #C53535; box-shadow: 0 4px 10px rgba(0,0,0,0.08); }
.card-item h3  { margin: 0 0 8px; color: #005e8d; font-size: 16px; }
.card-item p   { font-size: 13px; color: #555; margin: 0 0 10px; line-height: 1.5; }
.badge {
    display: inline-block;
    background: #edf4f8;
    color: #005e8d;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 7px;
    border-radius: 3px;
    margin-right: 4px;
}

.btn-card {
    display: inline-block;
    margin-top: 10px;
    background: #005e8d;
    color: #fff;
    padding: 7px 14px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-card:hover { background: #004c74; color: #fff; text-decoration: none; }

/* ================================================================
   FORMULARIO DE CONTACTO (página /contacto)
   ================================================================ */
.contact-form-wrap {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 24px;
    max-width: 640px;
}

.contact-form-wrap h2 { margin-top: 0; color: #C53535; font-size: 20px; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: bold; margin-bottom: 5px; font-size: 13px; }

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: #C53535;
    box-shadow: 0 0 0 2px rgba(197,53,53,0.12);
}

.btn-enviar {
    background: #C53535;
    color: #fff;
    border: none;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-enviar:hover { background: #A92E2E; }

.form-msg { display: none; padding: 10px 14px; border-radius: 3px; margin-bottom: 14px; font-size: 13px; }
.form-msg.ok  { display: block; background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-msg.err { display: block; background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ================================================================
   FRANJA CONTACTO — blanca, texto izq. + botón CONVERSEMOS der.
   ================================================================ */
.contact-strip-section {
    background: #fff;
    padding: 18px 0;
}

.contact-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-strip-text {
    flex: 1;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

.contact-strip-text p { margin: 0; }
.contact-strip-text a { color: #C53535; font-weight: bold; }
.contact-strip-text a:hover { text-decoration: underline; }

.contact-strip-cta { flex-shrink: 0; }

/* Botón CONVERSEMOS — imagen completa btn-conversemos.png */
.btn-conversemos {
    display: inline-block;
    background: url(../img/btn-conversemos.png) no-repeat center center;
    background-size: contain;
    background-color: transparent;
    color: transparent;
    font-size: 0;
    border: none;
    width: 200px;
    height: 54px;
    cursor: pointer;
    transition: opacity 0.2s;
    padding: 0;
    vertical-align: middle;
}

.btn-conversemos:hover { opacity: 0.85; }

.btn-conversemos img {
    display: none; /* la imagen inline se oculta; se usa el background */
}

/* ================================================================
   ANTEFOOT — franja gris con frase roja cursiva
   ================================================================ */
.antefoot {
    background: #EAEAEA;
    padding: 5px 0;
    margin: 0;
}

.quote-text {
    color: #C53535;
    font-size: 19px;
    text-align: center;
    padding: 16px 0 10px;
    margin: 0;
    font-style: italic;
    line-height: 1.4;
}

/* ================================================================
   FOOTER — oscuro + franja carta-aérea en el borde INFERIOR
   ================================================================ */
.footer {
    background: url(../img/portada/barra-carta-inf.jpg) repeat-x scroll 0 bottom #333 !important;
    color: #CCC !important;
    text-align: center !important;
    padding: 40px 0 38px;
}

.footer .customtexto-footer p {
    font-size: 15px;
    color: #CCC;
    padding-bottom: 24px;
    margin: 0;
}

/* Logo footer: imagen de fondo arriba del texto de copyright */
.footer .customcopyright p {
    font-size: 13px;
    color: #CCC;
    background: url(../img/portada/logo-foot.jpg) no-repeat scroll center 0 transparent;
    padding-top: 100px;
    margin: 0;
}

/* ================================================================
   BACK TO TOP — ícono fijo esquina inferior derecha
   ================================================================ */
a#back-top {
    background: url(../img/portada/ico-up.png) no-repeat scroll 0 0 transparent;
    display: block;
    width: 45px;
    height: 45px;
    text-indent: -99999px;
    line-height: 0;
    font-size: 0;
    position: fixed;
    right: 90px;
    bottom: 37px;
    z-index: 100;
}

/* ================================================================
   BURBUJA WHATSAPP — verde, esquina inferior derecha
   ================================================================ */
.chat-bubble {
    position: fixed;
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.2s;
}

.chat-bubble:hover { transform: scale(1.12); text-decoration: none; color: #fff; }

/* ================================================================
   MODAL CONVERSEMOS
   ================================================================ */
.modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    place-items: center;
    z-index: 10000;
}

.modal-bg.open { display: grid; }

.modal-box {
    background: #fff;
    width: 90%;
    max-width: 520px;
    border-radius: 4px;
    padding: 26px;
    position: relative;
    box-shadow: 0 8px 28px rgba(0,0,0,0.3);
    animation: mdFade 0.22s ease-out;
}

@keyframes mdFade {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.modal-box h3 { margin-top: 0; color: #C53535; font-size: 20px; }

.modal-sub { font-size: 13px; color: #555; margin-bottom: 14px; }

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 24px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    border: none;
    background: none;
    line-height: 1;
}

.modal-close:hover { color: #333; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
    .header-inner { min-height: auto; padding-top: 19px; }
    .header .brand { width: 180px; background-size: contain; height: 80px; }
    .navigation { flex-wrap: wrap; }
    .navigation li a { padding: 14px 16px; font-size: 14px; }
    .slide-row { flex-direction: column; }
    .slide-text { flex: none; width: 100%; }
    .slide-photo { flex: none; width: 100%; }
    .slide-photo img { height: 180px; }
    .contact-strip-inner { flex-direction: column; align-items: flex-start; }
    .btn-conversemos { width: 100%; }
    /* Cursos responsive: contenido arriba, sidebar abajo */
    #content.span9, #aside.span3 { float: none; width: 100%; margin-right: 0; }
    #aside.span3 { margin-top: 16px; }
}

/* ================================================================
   NAVEGACIÓN PAGENAV (Anterior / Siguiente)
   ================================================================ */
.pagenav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 35px;
    margin-bottom: 15px;
    padding-top: 15px;
    clear: both;
    width: 100%;
}

.pagenav-wrap a {
    color: #C53535;
    font-size: 13px;
    text-decoration: none;
    font-weight: normal;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}

.pagenav-wrap a:hover {
    color: #9a2828;
    text-decoration: underline;
}

.pagenav-prev::before {
    content: "❮";
    font-size: 11px;
    margin-right: 5px;
    color: #C53535;
}

.pagenav-next::after {
    content: "❯";
    font-size: 11px;
    margin-left: 5px;
    color: #C53535;
}

@media (max-width: 480px) {
    .header .brand { width: 140px; height: 70px; }
    .custommail-top a { font-size: 14px; }
    .slide-text h2 { font-size: 18px; }
}

/* ── FRANJA DE CONTACTO CONVERSEMOS ── */
.contact-strip-section {
    background-color: #ffffff;
    padding: 25px 0;
    border-top: 1px solid #e2e2e2;
    border-bottom: 1px solid #e2e2e2;
}

.contact-strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
}

.contact-strip-text {
    flex: 0 1 auto;
    max-width: 480px;
    font-size: 14px;
    color: #333333;
    line-height: 1.6;
    text-align: left;
}

.contact-strip-text p {
    margin: 0;
}

.contact-strip-cta {
    flex-shrink: 0;
}

.btn-conversemos-link {
    display: inline-block;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.btn-conversemos-link:hover {
    opacity: 0.92;
    transform: scale(1.015);
}

.btn-conversemos-link img {
    display: block;
    height: 95px;
    width: auto;
    max-width: 100%;
}
