/*
 Theme Name: OrangeCat
 Template: generatepress
 Version: 1.2
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@600;700;800&display=swap');

/* ---------- Variables ---------- */
:root {
    --color-primary: #EE672F;
    --color-primary-dark: #d55726;
    --color-dark: #111111;
    --color-text: #444444;
    --color-bg: #f4f4f4;
    --color-white: #ffffff;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* ---------- Base global ---------- */
body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-dark);
    letter-spacing: -0.02em;
    margin-top: 0;
}

/* ---------- Header ---------- */
.site-header,
.header,
nav,
.main-navigation,
.inside-navigation {
    background-color: var(--color-dark) !important;
    color: var(--color-white) !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.site-header {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

.site-header a,
.main-navigation a {
    color: var(--color-white) !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.site-header a:hover,
.main-navigation a:hover {
    color: var(--color-primary) !important;
}

/* ---------- Logo ---------- */
.site-logo img {
    max-width: 60px;
    height: auto;
    transition: transform 0.3s ease;
}

.site-logo:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .site-logo img {
        max-width: 45px;
    }
}

/* Burger Menu */
.menu-toggle,
.menu-toggle .gp-icon svg,
.menu-toggle .gp-icon svg path {
    color: var(--color-primary) !important;
    fill: var(--color-primary) !important;
    stroke: var(--color-primary) !important;
}

.menu-toggle .gp-icon svg {
    width: 28px !important;
    height: 28px !important;
}

.menu-toggle:focus,
.menu-toggle:active,
.menu-toggle:hover {
    outline: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

/* ---------- Footer ---------- */
.site-footer {
    background-color: var(--color-dark) !important;
    color: #a0a0a0 !important;
    padding-top: 3rem;
}

.footer-widgets {
    background-color: transparent !important;
    padding-bottom: 2rem;
}

.footer-widgets h2,
.footer-widgets h3,
.footer-widgets h4 {
    color: var(--color-white) !important;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-widgets a {
    color: #cccccc !important;
    transition: color 0.2s ease;
}

.footer-widgets a:hover {
    color: var(--color-primary) !important;
}

.site-info {
    background-color: #000000 !important;
    color: #666666 !important;
    border-top: 1px solid #222;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

/* ---------- Hero principal ---------- */
.hero-full {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    /* Slightly reduced height */
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 1200px;
    margin: 2rem auto 4rem;
    position: relative;
    overflow: hidden;
}

/* Decorative background element */
.hero-full::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(238, 103, 47, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-text {
    position: relative;
    z-index: 1;
}

.hero-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-dark);
    max-width: 800px;
    margin: 0 auto 2.5rem;
    line-height: 1.3;
}

.values {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
}

.values div {
    font-size: 1.1rem;
    color: var(--color-text);
}

.values strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

@media (min-width: 768px) {
    .values {
        flex-direction: row;
        justify-content: center;
        gap: 5rem;
    }
}

/* ---------- Blog grid ---------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.post-card {
    border: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.post-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    color: var(--color-dark);
    margin: 0 0 1rem;
    line-height: 1.4;
}

.post-card p {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 1.5rem;
    flex-grow: 1;
}

/* ---------- Links y botones ---------- */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

button:not(.menu-toggle),
.button,
.wp-block-button__link {
    background-color: var(--color-primary);
    color: white !important;
    border: none;
    border-radius: 50px;
    /* Pill shape */
    cursor: pointer;
    font-weight: 600;
    padding: 0.8rem 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(238, 103, 47, 0.3);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    display: inline-block;
}

button:not(.menu-toggle):hover,
.button:hover,
.wp-block-button__link:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(238, 103, 47, 0.4);
}

/* ---------- Formularios ---------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
    font-family: 'Inter', sans-serif;
    border: 1px solid #e0e0e0;
    padding: 1rem;
    border-radius: var(--radius-sm);
    width: 100%;
    background: #ffffff;
    color: var(--color-dark);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

input:focus,
textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(238, 103, 47, 0.1);
}

/* ---------- Contenedor principal ---------- */
.container,
.site-content {
    background-color: transparent;
}

/* -------------------------
   HOME HERO (Specific)
--------------------------*/

.home-hero {
    padding: 10vh 20px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.home-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-dark);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* -------------------------
   VALUES SECTION HOME
--------------------------*/

.home-values {
    padding: 0 20px 10vh;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.home-values h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.home-values h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.value-block {
    padding: 2rem;
    background: var(--color-white);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.value-block:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.value-block h4 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.value-block p {
    font-size: 1.1rem;
    color: #555;
    margin-top: 0;
    font-style: normal;
}

/* -------------------------
   MOBILE ADAPTATIONS
--------------------------*/

@media (max-width: 768px) {
    .home-hero {
        padding: 6vh 20px;
    }

    .home-hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .home-values h3 {
        font-size: 1.6rem;
    }

    .value-block h4 {
        font-size: 1.1rem;
        /* Reduced from 1.3rem to fit one line */
        letter-spacing: -0.5px;
    }

    .value-block p {
        font-size: 1rem;
    }
}

/* CTA Buttons */
.home-cta {
    margin-top: 4rem;
}

.home-btn-anim {
    display: inline-block;
    background-color: var(--color-primary);
    color: #fff;
    font-weight: 700;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(238, 103, 47, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home-btn-anim:hover {
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(238, 103, 47, 0.4);
    background-color: var(--color-primary-dark);
}

/* GRID 2 columnas escritorio / 1 móvil */
.blog .site-main,
.archive .site-main {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 1.5rem;
}

/* Tarjeta de post (Blog Index) */
.blog-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.blog-card .inside-article {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card .post-image {
    margin: 0;
}

.blog-card .post-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .post-image img {
    transform: scale(1.08);
}

.entry-header {
    padding: 1.5rem 1.5rem 0.5rem;
}

.blog-card .entry-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.blog-card .entry-title a {
    color: var(--color-dark);
}

.blog-card .entry-title a:hover {
    color: var(--color-primary);
}

.entry-summary {
    padding: 0 1.5rem 1.5rem;
    color: #666;
    flex-grow: 1;
}

/* Post Navigation */
.post-navigation {
    margin-top: 4rem;
    padding: 2rem;
    background: var(--color-white) !important;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.post-navigation a {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form .search-field {
    border-radius: 50px;
    padding-left: 1.5rem;
}

.search-form .search-submit {
    border-radius: 50px;
    padding: 0 1.5rem;
}