/*
Theme Name: Frank Torres - Contabilidad y Finanzas
Theme URI: https://franktorres.conectandorincones.com/
Author: Andys Miguel Ortega Salas
Description: Tema modular ultra ligero y personalizado.
Version: 1.0.2
Text Domain: frank-torres
*/

/* Reset básico y variables CSS se definirán aquí */
:root {
    --ft-color-primary: #0D1B2A; /* Azul marino */
    --ft-color-secondary: #C6A64D; /* Dorado */
    --ft-color-white: #FFFFFF;
    --ft-color-light: #F4F4F4;
    --ft-font-heading: 'Playfair Display', serif;
    --ft-font-body: 'Lato', sans-serif;
}

body {
    font-family: var(--ft-font-body);
    color: var(--ft-color-primary);
    background-color: var(--ft-color-white);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ft-font-heading);
}

/* ==========================================================================
   ESTILOS DEL LOGOTIPO TEXTUAL
   ========================================================================== */
.ft-logo-container {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.2;
}
.ft-logo-main {
    font-family: var(--ft-font-heading);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ft-color-primary);
    font-size: 1.8rem;
}
.ft-logo-sub {
    font-family: var(--ft-font-body);
    font-weight: 300;
    color: var(--ft-color-secondary);
    font-size: 1rem;
}

/* ==========================================================================
   ESTILOS FRONTEND: CONTENEDORES Y BLOQUES BASE
   ========================================================================== */
.ft-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Bloque: Hero */
.prb-hero {
    background-color: var(--ft-color-primary);
    color: var(--ft-color-white);
    padding: 100px 0;
    text-align: center;
}
.prb-hero-title {
    color: var(--ft-color-secondary);
    font-size: 3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.prb-hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto;
    color: var(--ft-color-light);
}

/* Títulos de sección generales */
.prb-section-title {
    text-align: center;
    color: var(--ft-color-primary);
    margin-bottom: 40px;
    font-size: 2.2rem;
}

/* ==========================================================================
   COMPONENTES Y GRID RESPONSIVO
   ========================================================================== */
.ft-container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.prb-section {
    padding: 70px 0;
}

.prb-section:nth-child(even) {
    background-color: var(--ft-color-light);
}

.ft-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Tarjetas */
.ft-card {
    background: var(--ft-color-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.ft-card-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.ft-card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ft-card-title {
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    color: var(--ft-color-primary);
}

.ft-card-title a {
    color: inherit;
    text-decoration: none;
}

.ft-card-date {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 10px;
}

.ft-card-excerpt {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #444;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Botones */
.ft-btn {
    display: inline-block;
    padding: 10px 24px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 3px;
    text-align: center;
    transition: background-color 0.2s ease;
}

.ft-btn-primary {
    background-color: var(--ft-color-primary);
    color: var(--ft-color-white);
}

.ft-btn-primary:hover {
    background-color: #1a2f45;
}

.ft-btn-secondary {
    background-color: var(--ft-color-secondary);
    color: var(--ft-color-white);
}

.ft-btn-secondary:hover {
    background-color: #b0913e;
}

/* Acordeón FAQ */
.prb-faq-accordion {
    border-top: 1px solid #ddd;
}

.prb-faq-item {
    border-bottom: 1px solid #ddd;
}

.prb-faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 0;
    font-family: var(--ft-font-heading);
    font-size: 1.1rem;
    color: var(--ft-color-primary);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prb-faq-answer {
    display: none;
    padding-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

.prb-faq-item.is-open .prb-faq-answer {
    display: block;
}

.prb-faq-item.is-open .prb-faq-icon {
    transform: rotate(45deg);
}

.prb-faq-icon {
    font-size: 1.4rem;
    transition: transform 0.2s ease;
}

.prb-hero.ft-hero-reference {
    background-size: cover;
    background-position: center;
    padding: 180px 0 120px 0;
    text-align: center;
    color: #ffffff;
    position: relative;
}

.prb-hero.ft-hero-reference .prb-hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.prb-hero.ft-hero-reference .prb-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 20px;
}

.prb-hero.ft-hero-reference .prb-hero-subtitle {
    font-size: 1.15rem;
    color: #e2e8f0;
    margin-bottom: 35px;
    line-height: 1.6;
}

.ft-hero-cta-outline {
    display: inline-block;
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 14px 32px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.ft-hero-cta-outline:hover {
    background-color: #ffffff;
    color: #0f172a;
    border-color: #ffffff;
}