/*
    Theme Name: Demo Teresa
    Theme URI: 
    Author: Benjude Premier
    Author URI: 
    Description: Theme Diseñado para Liceo Teresa Prats
    Version: 1.0
    License: GNU General Public License v2 or later
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    Tags: Liceo, Blog, Apoderados, Estudiantes, Comunidad..
    Text Domain: demoteresa
*/

/* Import Font Awesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

/* Import Google Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blanco: #ffffff;
    --azul: #1f104f;
    --primario: #FFC107;
    --segundario: #FF7D00;
    --gris: #757575;
    --grisClaro: #DFE9F3;
    --fuente-principal: 'Montserrat';
    --fuente-contenido: 'Montserrat';
    --color-enlace: #2563eb;
    --color-enlace-hover: #1d4ed8;
    --sombra-suave: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/** Global Styles **/
html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    font-family: var(--fuente-principal);
    font-size: 1.6rem;
    line-height: 1.5;
    text-transform: uppercase;
    font-kerning: normal;
    letter-spacing: 0.03em;
    overflow-x: hidden;
}

/* Page Content Styles */
article.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    line-height: 1.8;
    color: #333;
    font-family: var(--fuente-contenido);
}

.entry-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.entry-title {
    font-size: 2.5rem;
    text-align: center;
    font-weight: 700;
    color: var(--azul);
    margin: 0 0 1rem 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.entry-content {
    font-size: 1.6rem;
    color: #444;
    font-family: var(--fuente-contenido);
    text-transform: none;
}

.entry-content p {
    margin: 0 0 2rem 0;
}

.entry-content a {
    color: var(--color-enlace);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
}

.entry-content a:hover {
    color: var(--color-enlace-hover);
    border-bottom-color: rgba(37, 99, 235, 0.8);
}

.entry-content h2 {
    font-size: 2.2rem;
    margin: 3rem 0 1.5rem 0;
    color: var(--azul);
    font-weight: 600;
    line-height: 1.4;
}

.entry-content h3 {
    font-size: 1.9rem;
    margin: 2.5rem 0 1.25rem 0;
    color: var(--azul);
    font-weight: 600;
    line-height: 1.4;
}

.entry-content h4 {
    font-size: 1.7rem;
    margin: 2rem 0 1rem 0;
    color: var(--azul);
    font-weight: 600;
}

.entry-content blockquote {
    border-left: 4px solid var(--color-enlace);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: var(--grisClaro);
    color: var(--gris);
    font-style: italic;
    text-align: center;
    border-radius: 0 6px 6px 0;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem auto;
    display: block;
    border-radius: 8px;
    box-shadow: var(--sombra-suave);
}

.entry-content ul,
.entry-content ol {
    margin: 2rem 0;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

/* Header Styles */
header {
    position: relative;
    background-color: var(--azul);
    color: var(--blanco);
    padding-top: 4rem;
}

.head-contacto {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    padding: 1rem;
    background-color: var(--azul);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

.head-contacto div {
    display: flex;
    align-items: center;
    margin: 0 1.5rem;
}

.head-contacto i {
    margin-right: 0.8rem;
    font-size: 1.6rem;
}

.head-contacto span {
    font-size: 1.4rem;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--blanco);
    flex-wrap: wrap;
}

.logo img {
    max-width: 12rem;
    height: auto;
}

/* Navigation Styles */
.main-navigation {
    display: block;
    position: relative;
    width: 100%;
}

.main-navigation ul.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.main-navigation ul.menu ul li {
  margin: 0;
  padding: 0;
  width: 100%;
  list-style: none;
}

.main-navigation ul.menu > li {
    position: relative;
    margin: 0 1.5rem;
}

.main-navigation ul.menu a {
    display: block;
    padding: 1rem 0;
    color: var(--azul);
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.main-navigation ul.menu a:hover {
    color: var(--primario);
}

/* Dropdown styles */
.main-navigation ul.menu ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--blanco);
    min-width: 20rem;
    box-shadow: 0 0.8rem 1.6rem rgba(0,0,0,0.1);
    z-index: 999;
    border-radius: 0 0 1rem 1rem;
}

.main-navigation ul.menu ul li {
    margin: 0;
    padding: 0;
    width: 100%;
}

.main-navigation ul.menu ul a {
    padding: 1.2rem 1.6rem;
    text-align: left;
    white-space: nowrap;
}

.main-navigation ul.menu ul a:hover {
    background-color: var(--grisClaro);
}

.main-navigation ul.menu li:hover > ul {
    display: block;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--azul);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 1rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    max-height: 800px;
    min-height: 500px;
    overflow: hidden;
}

.slider {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide-track {
    display: flex;
    width: 400%;
    height: 100%;
    animation: slide 15s infinite linear;
}

.slide {
    width: 100%;
    height: 100%;
    flex: 0 0 25%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: var(--blanco);
    text-align: center;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 20px;
    box-sizing: border-box;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.3;
}

.hero-content button {
    background-color: var(--primario);
    color: var(--azul);
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.8rem;
    font-weight: bold;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hero-content button:hover {
    background-color: var(--segundario);
}

@keyframes slide {
    0% { transform: translateX(0); }
    25% { transform: translateX(-25%); }
    50% { transform: translateX(-50%); }
    75% { transform: translateX(-75%); }
    100% { transform: translateX(-75%); }
}

/* Main Content */
main {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Quote Section */
.quote-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 5rem;
}

/* Apply italic style to h3.letra1 and .letra2 */
.letra1,
.letra2 {
    font-style: italic;
}

/* But make the span inside them appear normal */
.letra1 span,
.letra2 span {
    font-style: normal;
    color: var(--primario);
}

.quote-block {
    flex: 1;
    min-width: 30rem;
    max-width: 50rem;
    padding: 2rem;
    background-color: var(--grisClaro);
    border-radius: 0.5rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.quote-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.quote-block h3 {
    font-size: 2.2rem;
    color: var(--azul);
    line-height: 1.4;
}

/* Quote with progress bar */
.quote-with-progress {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.vertical-progress {
    width: 0.8rem;
    height: 10rem;
    background-color: #e0e0e0;
    border-radius: 0.4rem;
    position: relative;
    overflow: hidden;
}

.vertical-progress-bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 0;
    background-color: var(--azul);
    border-radius: 0.4rem;
    transition: height 1.2s ease-out;
}


.quote-with-progress.visible .vertical-progress-bar {
    height: 70%;
}

/* Stats Section */
.stats-section {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 3rem 0;
    gap: 2rem;
}

.student-info,
.trabajadores-info,
.curso-info {
    text-align: center;
    padding: 2rem;
    background-color: var(--grisClaro);
    border-radius: 0.5rem;
    flex: 1;
    min-width: 20rem;
}

.student-info i,
.trabajadores-info i,
.curso-info i {
    font-size: 3rem;
    color: var(--azul);
    margin-bottom: 1rem;
}

.student-info span,
.trabajadores-info span,
.curso-info span {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: var(--azul);
    margin-bottom: 1rem;
}

.student-info h3,
.trabajadores-info h3,
.curso-info h3 {
    font-size: 2rem;
    color: var(--primario);
}

/* News Section */
.news-section {
    margin: 5rem 0;
}

.news-section h3 {
    font-size: 2.5rem;
    color: var(--azul);
    margin-bottom: 3rem;
    text-align: center;
}

/* Base layout for news section */
.news-section {
  overflow: visible;
}

.news-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  overflow: visible;
}

/* Blog Button - Base Styles (all screens) */
.blog-button-wrapper {
  text-align: center;
  margin-top: 2rem;
  width: 100%;
}

.blog-button-wrapper a,
a.button,
a.button-primary,
.button,
.button-primary {
  background-color: var(--primario);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  display: inline-block;
  text-decoration: none !important;
  box-shadow: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Hover effect for all buttons */
.blog-button-wrapper a:hover,
a.button:hover,
a.button-primary:hover,
.button:hover,
.button-primary:hover {
  background-color: #005177;
  text-decoration: none !important;
  transform: translateY(-2px);
}



.noticia {
    background-color: var(--grisClaro);
    padding: 2rem;
    border-radius: 0.5rem;
    flex: 1;
    min-width: 25rem;
    max-width: 30rem;
}

.noticia img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.noticia p {
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.noticia button {
    background-color: var(--azul);
    color: var(--blanco);
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.noticia button:hover {
    background-color: var(--primario);
}

/* Testimonials Section */
.testimonials-section {
    margin: 5rem 0;
}

.testimonials-section h3 {
    font-size: 2.5rem;
    color: var(--azul);
    margin-bottom: 3rem;
    text-align: center;
}

.testimonials-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.testimonial {
    background-color: var(--grisClaro);
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    flex: 1;
    min-width: 25rem;
    max-width: 30rem;
}

.testimonial img {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    background-color: var(--gris);
}

.testimonial p {
    font-style: italic;
    color: var(--gris);
    font-size: 1.6rem;
}

/* Team Directivo Section */
.team-directivo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.team-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.team-member-card {
    background: var(--blanco);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--sombra-suave);
    transition: transform 0.3s ease;
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.team-member-photo {
    height: 250px;
    overflow: hidden;
}

.team-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.team-member-info {
    padding: 1.5rem;
}

.team-member-info h3 {
    margin: 0 0 0.5rem;
    color: var(--azul);
    font-size: 1.8rem;
}

.team-member-info .position {
    color: var(--segundario);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.team-member-info .contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    font-size: 1.2rem;
}

.team-member-info .contact i {
    color: var(--azul);
    width: 20px;
    text-align: center;
}

/* Footer Styles */
footer {
    background-color: var(--azul);
    color: var(--blanco);
    padding: 4rem 2rem 2rem;
    font-size: 1.6rem;
    line-height: 1.6;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
    align-items: flex-start;
}

.footer-logo img {
    max-width: 180px;
    height: auto;
    filter: brightness(0.3) invert(0.8);
    transition: transform 0.3s ease; 
}

.footer-logo img:hover {
    transform: scale(1.05);
}

.footer-content {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: space-between;
}

.footer-nav {
    flex: 1;
    min-width: 200px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-nav a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, opacity 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-nav a:hover {
    opacity: 0.8;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--blanco);
    transition: width 0.3s ease;
}

.footer-nav a:hover::after {
    width: 100%;
}

.footer-contact {
    flex: 1;
    min-width: 200px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.contact-info i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.copyright {
    margin: 0;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Virtual Assistant */
.virtual-assistant-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.virtual-assistant {
    width: 350px;
    max-width: 90vw;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    font-family: var(--fuente-principal);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .header-container {
        padding: 1rem;
    }
    
    .main-navigation ul.menu > li {
        margin: 0 1rem;
    }
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .stats-section {
        flex-direction: column;
        align-items: center;
    }
    
    .student-info,
    .trabajadores-info,
    .curso-info {
        width: 100%;
        max-width: 30rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 58%;
    }
    
    .head-contacto {
        position: static;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 2rem;
    }
    
    .head-contacto div {
        margin: 0.5rem 0;
    }
    
    .header-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .logo {
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .menu-toggle {
        display: block;
        margin-left: auto;
    }
    
    .main-navigation {
        display: none;
        width: 100%;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul.menu {
        flex-direction: column;
    }
    
    .main-navigation ul.menu > li {
        margin: 0;
        width: 100%;
    }
    
    .main-navigation ul.menu ul {
        position: static;
        box-shadow: none;
        width: 100%;
    }
    
    .hero-section {
        height: 80vh;
        min-height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .quote-block,
    .noticia,
    .testimonial {
        min-width: 100%;
    }

    /* Testimonial start hear*/
.testimonials-swiper {
  width: 100%;
  padding: 2rem 0;
}
.testimonial {
  text-align: center;
  padding: 1rem;
}


.testimonial-animate.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Testimonial end Here*/

    .quote-with-progress {
        flex-direction: column;
    }
    
    .vertical-progress {
        width: 100%;
        height: 0.8rem;
    }
    
    .vertical-progress-bar {
        width: 0;
        height: 100%;
    }
    
    .quote-with-progress.visible .vertical-progress-bar {
        width: 70%;
        height: 100%;
    }
    
    .footer-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 70vh;
        min-height: 300px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content button {
        padding: 1rem 2rem;
        font-size: 1.6rem;
    }
    
    .quote-block h3,
    .news-section h3,
    .testimonials-section h3 {
        font-size: 2rem;
    }
    
    .team-member-photo {
        height: 200px;
    }
    
    .virtual-assistant-container {
        bottom: 15px;
        right: 15px;
    }
}

/* Animation for quote blocks when they appear */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

