/**
 * Pablo Andrei Zamudio Díaz Theme - Estilos Principales
 * Tema personalizado para el sitio web del abogado Pablo Andrei Zamudio Díaz
 */

/* Variables CSS */
:root {
    --primary-color: #4A9B9B;
    --secondary-color: #2C5F5F;
    --accent-color: #E0F7FA;
    --text-dark: #333333;
    --text-muted: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 15px rgba(0,0,0,0.2);
    --border-radius: 15px;
    --transition: all 0.3s ease;
}

/* Reset y estilos base */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Botones */
.btn {
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    padding: 12px 30px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

/* Formularios */
.form-control {
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 155, 155, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

/* Iconos */
.fas, .fab {
    transition: var(--transition);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Utilidades */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.shadow-custom {
    box-shadow: var(--shadow);
}

.shadow-custom-hover:hover {
    box-shadow: var(--shadow-hover);
}

/* Efectos de hover */
.hover-lift:hover {
    transform: translateY(-5px);
    transition: var(--transition);
}

.hover-scale:hover {
    transform: scale(1.05);
    transition: var(--transition);
}

/* Gradientes */
.gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.gradient-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #1A4A4A);
}

/* Espaciado personalizado */
.py-section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .py-section {
        padding: 60px 0;
    }
}

/* Estilos específicos para Pablo */
.hero-badge {
    display: inline-block;
}

.badge-text {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: white;
}

.hero-divider {
    width: 100px;
    height: 3px;
    background: white;
    margin: 0 auto;
}

.hero-icon {
    font-size: 3rem;
    opacity: 0.3;
    color: white;
}

/* Efectos de scroll */
.navbar.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Video overlay */
.video-overlay {
    background: linear-gradient(135deg, rgba(74, 155, 155, 0.9), rgba(44, 95, 95, 0.9));
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

/* Footer específico */
.footer-logo-main {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-logo-sub {
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
}

.footer-logo-tagline {
    font-size: 0.8rem;
    font-weight: 400;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===================================
   ESTILOS PARA ENTRADAS INDIVIDUALES
   =================================== */

/* Sección Hero de entradas */
.single-hero {
    min-height: 80vh;
    height: 80vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

/* Asegurar que la imagen cubra todo el espacio */
.single-hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-image: inherit;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.single-hero .container {
    position: relative;
    z-index: 3;
    color: white;
    text-align: center;
}

.single-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

.single-hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 300;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contenido de la entrada */
.single-content {
    padding: 3rem 0;
    background: var(--bg-light);
}

.single-article {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

/* Metadatos de entrada */
.entry-meta {
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent-color);
    margin-bottom: 2rem !important;
}

.entry-meta .entry-date,
.entry-meta .entry-author,
.entry-meta .entry-categories {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.entry-meta i {
    color: var(--primary-color);
}

/* Contenido principal */
.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content h2 {
    font-size: 1.8rem;
}

.entry-content h3 {
    font-size: 1.5rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

.entry-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-muted);
    background: var(--accent-color);
    padding: 1rem 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Etiquetas */
.entry-tags {
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.tag-link {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.tag-link:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* Navegación entre entradas */
.post-navigation {
    padding-top: 2rem;
    border-top: 2px solid var(--accent-color);
}

.post-navigation a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 1rem;
    border-radius: var(--border-radius);
    background: var(--accent-color);
    transition: var(--transition);
    display: block;
}

.post-navigation a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Sección Más noticias */
.more-news {
    background: white;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 1rem auto 2rem;
    border-radius: 2px;
}

/* Tarjetas de noticias */
.news-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.news-card-image {
    overflow: hidden;
    height: 200px;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

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

.news-card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.news-card-meta .news-date {
    color: var(--primary-color);
    font-weight: 600;
}

.news-card-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

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

.news-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    align-self: flex-start;
}

.read-more:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .single-article {
        padding: 1.5rem;
    }

    .entry-meta .d-flex {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start !important;
    }

    .news-card {
        margin-bottom: 2rem;
    }

    .post-navigation .row {
        flex-direction: column;
        gap: 1rem;
    }

    /* Ajustes para móvil del hero */
    .single-hero {
        min-height: 60vh;
        height: 60vh;
        background-attachment: scroll; /* Mejor rendimiento en móviles */
    }

    .single-hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        padding: 0 1rem;
    }

    .single-hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
        padding: 0 1rem;
    }

    /* Header responsive */
    .header-icons {
        gap: 1rem;
    }

    .menuHead {
        order: 3;
        width: 100%;
        margin-top: 1rem;
    }
}
