/*
Theme Name: Estudios Procesales
Theme URI: https://estudiosprocesales.cl
Author: Hugo Botto
Author URI: https://estudiosprocesales.cl
Description: Theme profesional para repositorio jurídico y publicaciones de interés legal
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: estudios-procesales
Tags: legal, repository, professional, responsive, custom-menu
*/

:root {
    --primary-color: #001f3f;
    --secondary-color: #007BFF;
    --accent-color: #00BFFF;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--primary-color);
    z-index: 1000;
    box-shadow: var(--shadow);
    padding:10px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: var(--white);
    font-weight: 600;
}
.nav-logo img {
    max-width: 350px;
    height:auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-link:visited {
    color: var(--white);
    text-decoration: none;
}

.nav-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    text-decoration: none;
}

.nav-link:active {
    color: var(--accent-color);
    text-decoration: none;
} 

.bar {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 5%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-button {
    background: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.4s both;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background: var(--white);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image i {
    font-size: 15rem;
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

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

/* Publications Section */
.publications {
	margin-top:50px;
    padding: 5rem 0;
    background: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
}

.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.search-input {
    width: 400px;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.search-button {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.search-button:hover {
    background: var(--primary-color);
}

.publications-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.pdf-icon-container {
    flex-shrink: 0;
}

.pdf-icon {
    font-size: 8rem;
    color: #e74c3c;
    opacity: 0.8;
}

.documents-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.document-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.document-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary-color);
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-icon {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.card-description {
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.card-date {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.card-actions {
    display: flex;
    gap: 1rem;
}

.btn-view, .btn-download {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

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

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

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

.btn-download:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-numbers {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    background: var(--white);
    color: var(--text-color);
    border-radius: 5px;
    text-decoration: none;
    transition: var(--transition);
}

.page-numbers:hover, .page-numbers.current {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--white);
}

.about-content {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-text {
    flex: 1;
	text-align:center; 
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--gray);
}

.about-stats {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 15px;
    transition: var(--transition);
}

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

.stat h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--gray);
    font-weight: 500;
}

/* Areas Section */
.areas {
    padding: 5rem 0;
    background: var(--light-bg);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.area-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary-color);
}

.area-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.area-card i {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.area-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.area-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--light-bg); 
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.submit-button {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: block;
    margin: 2rem auto 0;
}

.submit-button:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.footer-section p,
.footer-section li {
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.8);
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .hero-image i {
        font-size: 10rem;
    }

    .about-content {
        flex-direction: column;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .publications-layout {
        flex-direction: column;
        text-align: center;
    }

    .pdf-icon {
        font-size: 6rem;
    }

    .search-input {
        width: 250px;
    }

    .card-actions {
        flex-direction: column;
    }
    
    .btn-view, .btn-download {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .documents-grid {
        grid-template-columns: 1fr;
    }

    .areas-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}


.pdf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.85);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
}

.pdf-modal-content {
    position: relative;
    width: 80vw;
    height: 80vh;
    background: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border-radius: 8px;
    overflow: hidden;
}

.pdf-modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.pdf-modal-close {
    position: fixed;
    top: 30px;
    right: 30px;
    font-size: 17px;
    color: #fff;
    background-color: #FFF;
    z-index: 100001;
    cursor: pointer;
    padding: 4px 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
}

/* Estilos adicionales para el single post */
.single-post-content a:not(.btn-view):not(.btn-download) {
    color: var(--secondary-color);
    text-decoration: underline;
    transition: var(--transition);
}

.single-post-content a:not(.btn-view):not(.btn-download):hover {
    color: var(--primary-color);
}

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

.entry-content blockquote {
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: var(--light-bg);
    border-left: 4px solid var(--secondary-color);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: var(--gray);
}

.entry-content ul, .entry-content ol {
    margin: 1.5rem 0 1.5rem 2rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

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

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

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

.entry-content h4 {
    font-size: 1.2rem;
}

.nav-post:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.post-share a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.post-tags a:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .post-meta {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .post-navigation {
        grid-template-columns: 1fr !important;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .post-share > div {
        flex-direction: column;
    }
    
    .post-share a {
        width: 100%;
        justify-content: center;
    }
} 

/* Estilo general del formulario */
/* Contenedor del formulario */
.wpcf7 {
    background-color: #ffffff;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 10px;
    max-width: 600px;
    margin: 40px auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Etiquetas de los campos */
.wpcf7 label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

/* Campos de texto y textarea */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

/* Botón de envío */
.wpcf7 input[type="submit"] {
    background-color: #0073aa;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wpcf7 input[type="submit"]:hover {
    background-color: #005f8d;
} 

/* Mensajes de respuesta */
.wpcf7-response-output {
    margin-top: 20px;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
}

.wpcf7-mail-sent-ok {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.wpcf7-validation-errors {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Botón de envío personalizado */
.wpcf7 input[type="submit"] {
    background-color: #007bff; /* Azul brillante */
    color: #ffffff;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 25px; /* Bordes redondeados */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    text-align: center;
}

/* Efecto al pasar el mouse */
.wpcf7 input[type="submit"]:hover {
    background-color: #0056b3; /* Azul más oscuro al pasar el mouse */
    transform: scale(1.05); /* Ligero zoom */
}

/* Estilo para autores */
.autores {
    text-align: center;
    padding: 20px;
}

.autor-link {
    gap: 10px;
    font-size: 16px;
	text-decoration: none;
	color: #000000;
}

.autor-link a {
    text-decoration: none;
    font-weight: bold;
}

.autor-link a:hover {
    text-decoration: none;
}

a{
	text-decoration:none;
}
a:visited{
	text-decoration:none;
}

a,
a:visited,
a:active {
  color: inherit; /* o puedes usar un color específico como 'black' */
  text-decoration: none; /* opcional, si no quieres subrayado */
}
