/*
Theme Name: Consultora Principado Minimalist
Theme URI: https://www.consultoraprincipado.com/
Author: Tu Nombre / Gemini
Description: Tema moderno, minimalista y ligero diseñado para consultorías profesionales.
Version: 1.4.0
Requires at least: 6.2
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: consultora-principado
*/

/* --- VARIABLES CSS --- */
:root {
    --primary: #0a2540;
    /* Azul Marino Profundo */
    --accent-blue: #005ce6;
    /* Azul Vibrante */
    --accent-warm: #e85d04;
    /* Naranja Quemado (Para hovers y acentos) */
    --text: #425466;
    --text-light: #6b7c93;
    --bg-white: #ffffff;
    --bg-gradient: linear-gradient(135deg, #f6f9fc 0%, #eef2f7 100%);
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* --- ANIMACIONES --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-block {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}


/* --- NAVEGACIÓN --- */
nav {
    padding: 1.2rem 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent-warm);
    border-radius: 50%;
    margin-left: 5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-warm);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-warm);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- HERO SECTION --- */
.hero {
    padding: 120px 8% 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--bg-gradient);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary);
    max-width: 900px;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.highlight-text {
    color: var(--accent-blue);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 650px;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

/* --- BOTONES --- */
.btn-primary {
    background: var(--accent-blue);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0, 92, 230, 0.2);
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-5px);
    background: var(--accent-warm);
    box-shadow: 0 12px 20px rgba(232, 93, 4, 0.3);
}

/* --- SERVICIOS (Tarjetas CORREGIDAS) --- */
.services {
    padding: 100px 8%;
    background: var(--bg-white);
}

.section-header {
    text-align: left;
    margin-bottom: 60px;
    max-width: 600px;
}

.section-header h4 {
    color: var(--accent-warm);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

/* ESTILOS DE TARJETA CORREGIDOS */
.card {
    padding: 40px;
    background: white;
    border-radius: 16px;
    /* Definimos un borde base sutil */
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Sobreescribimos el borde superior con el color primario */
    border-top: 4px solid var(--accent-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    /* Transición suave para el color del borde y la transformación */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-top-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Eliminada la regla .card:nth-child(2) para uniformidad */

.card:hover {
    /* Elevación */
    transform: translateY(-10px);
    /* Sombra más profunda */
    box-shadow: 0 20px 40px rgba(10, 37, 64, 0.12);
    /* CAMBIO CLARO DE COLOR EN EL BORDE SUPERIOR */
    border-top-color: var(--accent-warm);
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
}

.card p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.card-link {
    text-decoration: none;
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

/* Flecha animada en el enlace */
.card-link span {
    transition: transform 0.3s ease;
    display: inline-block;
    margin-left: 5px;
}

.card:hover .card-link {
    color: var(--accent-warm);
}

.card:hover .card-link span {
    transform: translateX(5px);
}


/* --- CONTACTO CTA --- */
.cta-section {
    padding: 100px 8%;
    background: var(--primary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0) 60%);
    pointer-events: none;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
}

.btn-contrast {
    background: white;
    color: var(--primary);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    display: inline-block;
    margin-top: 30px;
}

.btn-contrast:hover {
    background: var(--accent-warm);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(232, 93, 4, 0.4);
}

/* --- FOOTER --- */
footer {
    background: var(--bg-white);
    color: var(--text);
    padding: 80px 8% 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand h4 {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-links h5 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-light);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 30px;
    font-size: 0.9rem;
    text-align: center;
    color: var(--text-light);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero {
        padding-top: 80px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .nav-links {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-header {
        text-align: center;
        margin: 0 auto 40px;
    }
}