/*
Theme Name: Tramite Agil Theme
Author: Sergio Deniz
Description: Tema personalizado de Trámite Ágil
Version: 1.0
*/
/* ---------------------------------------- */
/*             PALETA DE COLORES            */
/* ---------------------------------------- */
:root {
    --primario: #112250;
    --oscuro: #090b18;
    --dorado: #d7bf90;
    --dorado-claro: #dbbe9a;
    --blanco: #ffffff;
    --sombra: rgba(0, 0, 0, 0.35);
}

/* ---------------------------------------- */
/*                RESETEO BASE              */
/* ---------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: var(--oscuro);
    color: var(--blanco);
    line-height: 1.6;
}

/* ---------------------------------------- */
/*                NAV MOBILE                */
/* ---------------------------------------- */
.nav-mobile {
    display: block;
    padding: 20px;
    background: var(--oscuro);
    border-bottom: 2px solid var(--dorado);
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    width: 120px;
    height: auto;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100%;
    background: var(--primario);
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    transition: 0.4s ease;
    box-shadow: -4px 0 12px var(--sombra);
}

.mobile-menu a {
    color: var(--blanco);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.btn-menu {
    padding: 14px;
    background: var(--dorado);
    border-radius: 8px;
    color: var(--oscuro);
    font-weight: bold;
    text-align: center;
}

.mobile-menu.active {
    right: 0;
}

.hamburger {
    width: 30px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    border: none;
    background: transparent;
}

.hamburger span {
    height: 3px;
    background: var(--dorado);
    border-radius: 2px;
    transition: 0.3s ease;
}

/* Animación del botón a X */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* ---------------------------------------- */
/*                    HERO                   */
/* ---------------------------------------- */
.hero {
    text-align: center;
    padding: 120px 20px;
    background: linear-gradient(135deg, #090b18 0%, #112250 100%);
    border-bottom: 4px solid var(--dorado);
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    filter: blur(120px);
    border-radius: 50%;
}

.hero::before {
    background: rgba(215,191,144,0.18);
    top: -80px;
    left: -60px;
}

.hero::after {
    background: rgba(0,0,0,0.45);
    bottom: -80px;
    right: -60px;
}

.logo {
    width: 150px;
    display: block;
    margin: 0 auto 20px;
    animation: logoGlow 3s ease-in-out infinite, logoFadeIn 1.5s ease;
}

@keyframes logoGlow {
    0% { filter: drop-shadow(0 0 0px var(--dorado)); }
    50% { filter: drop-shadow(0 0 14px var(--dorado)); transform: scale(1.04); }
    100% { filter: drop-shadow(0 0 0px var(--dorado)); }
}

@keyframes logoFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

#typewriter {
    font-size: 2.6rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 12px;
}

/* ---------------------------------------- */
/*                 BOTONES                   */
/* ---------------------------------------- */
.btn-primario {
    padding: 14px 22px;
    background: var(--dorado);
    color: var(--oscuro);
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    transition: 0.3s ease;
}

.btn-primario:hover {
    background: var(--dorado-claro);
}

/* ---------------------------------------- */
/*                SECCIONES                  */
/* ---------------------------------------- */
main {
    display: block;
}

section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 70px 20px;
}

h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--dorado);
    margin-bottom: 35px;
}

/* ---------------------------------------- */
/*                   GRID                    */
/* ---------------------------------------- */
.grid-3,
.grid-2 {
    display: grid;
    gap: 25px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* ---------------------------------------- */
/*                   CARDS                   */
/* ---------------------------------------- */
.card,
.testimonio {
    background: var(--primario);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--dorado);
    box-shadow: 0 4px 12px var(--sombra);
    transition: 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    background: #142b66;
}

.card h3 {
    font-size: 1.4rem;
    color: var(--dorado);
    margin-bottom: 10px;
}

/* ---------------------------------------- */
/*           PROBLEMAS 6 ITEMS              */
/* ---------------------------------------- */
.problemas-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.problema-item {
    background: var(--primario);
    padding: 22px;
    border-radius: 12px;
    border-left: 4px solid var(--dorado);
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 1.05rem;
    box-shadow: 0 4px 12px var(--sombra);
    transition: 0.3s ease;
}

.problema-item span {
    font-size: 1.6rem;
}

.problema-item:hover {
    transform: translateY(-6px);
    background: #142b66;
}

/* ---------------------------------------- */
/*               TESTIMONIOS                 */
/* ---------------------------------------- */
.testimonio {
    font-style: italic;
    border-left-color: var(--dorado-claro);
}

/* ---------------------------------------- */
/*                SOBRE MÍ                   */
/* ---------------------------------------- */
.sobre-mi-texto p + p {
    margin-top: 10px;
}

.foto-placeholder {
    background: var(--oscuro);
    border: 2px dashed var(--dorado);
    padding: 70px;
    text-align: center;
    font-size: 1.2rem;
    border-radius: 12px;
    opacity: 0.85;
}

/* ---------------------------------------- */
/*                 FORMULARIO               */
/* ---------------------------------------- */
form {
    background: var(--primario);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--sombra);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

input,
textarea {
    background: var(--oscuro);
    color: var(--blanco);
    border: 1px solid var(--dorado-claro);
    padding: 14px;
    border-radius: 8px;
    font-size: 1rem;
}

input::placeholder,
textarea::placeholder {
    color: #d5d5d5;
}

form button {
    background: var(--dorado);
    color: var(--oscuro);
    padding: 16px;
    border: none;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s ease;
}

form button:hover {
    background: var(--dorado-claro);
}

#form-status {
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
    color: var(--dorado);
    min-height: 1.2em;
}

/* ---------------------------------------- */
/*                 CTA FINAL                 */
/* ---------------------------------------- */
.cta-final {
    background: var(--primario);
    text-align: center;
    padding: 90px 20px;
    border-top: 4px solid var(--dorado);
    border-bottom: 4px solid var(--dorado);
}

.cta-final p {
    font-size: 1.2rem;
    margin: 15px 0 25px;
}

/* ---------------------------------------- */
/*                  FOOTER                   */
/* ---------------------------------------- */
footer {
    text-align: center;
    padding: 25px 15px;
    color: var(--dorado);
    border-top: 1px solid var(--dorado);
    font-size: 0.95rem;
}

/* ---------------------------------------- */
/*               RESPONSIVE                  */
/* ---------------------------------------- */
@media (max-width: 768px) {

    #typewriter {
        font-size: 2rem;
        line-height: 1.3;
    }

    section {
        padding: 50px 18px;
    }

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr !important;
    }

    .nav-logo {
        width: 100px;
    }

    .hero {
        padding: 90px 20px;
    }

    .cta-final {
        padding: 70px 18px;
    }
}
/* Botón de cerrar dentro del menú */
.close-menu {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--dorado);
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: 0.3s ease;
}

.close-menu:hover {
    color: var(--dorado-claro);
    transform: scale(1.15);
}

.close-menu:active {
    transform: scale(0.9);
}

/* ---------------------------------------- */
/*         ESPACIADO NATURAL WORDPRESS      */
/* ---------------------------------------- */

/* Separación consistente entre bloques */
.wp-block {
    margin-bottom: 35px;
}

/* Títulos más compactos y elegantes */
.wp-block-heading {
    margin-bottom: 15px;
}

/* Párrafos respirables */
.wp-block-paragraph {
    margin-bottom: 18px;
}

/* Botones bien posicionados */
.wp-block-buttons {
    margin-top: 25px;
    margin-bottom: 10px;
}
