/** ------------------------
        ABOUT HTML
------------------------- **/
/** ===== HERO ===== **/
#second-page-hero {
    background-color: #235161;
    padding: 5rem 40rem 5rem 10rem;
}
#second-page-hero h1 {
    font-family: 'Fraunces';
    color: #fff;
    font-weight: 300;
    font-size: 3.8rem;
    margin: 0;
    padding: 1rem 0 0 0;
    line-height: 1.1;
}
#second-page-hero .second-italic {
    font-style: italic;
}
#second-page-hero p {
    color: #c0c0c0;
    font-size: 1.1rem;
    padding: 0 12rem 0 0;
}
/** ===== DESCRIPTION ===== **/
.about-page {
    align-items: start;
}
.contact-container {
    background-color: #e8ddca;
    padding: 2rem;
    border-radius: 25px;
    margin-top: 2rem;
}
.contact-container h3 {
    color: #c07959;
    font-family: 'Fraunces';
    font-weight: 450;
    margin: 0;
    padding: 0 0 0.5rem 0;
}
.contact-container p {
    font-size: 0.9rem;
    color: #24343a;
    margin: 0;
    padding: 0.5rem 0 0 0;
}
.presentation h2 {
    font-family: 'Fraunces';
    color: #235161;
    font-weight: 450;
    font-size: 2.6rem;
    margin: 0;
    padding-bottom: 2rem;
}
.presentation p {
    margin: 0 0 1.25rem;
    color: #24343a;
    font-size: 1rem;
    line-height: 1.7;
}
.presentation-last-p {
    margin: 0;
    padding: 0 0 1rem;
}
.presentation-further {
    margin-top: 2rem;
}
.presentation-further h3 {
    margin: 0 0 0.5rem;
    color: #c07959;
    font-family: 'Fraunces', serif;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.3;
}
.presentation-further p {
    margin: 0;
    color: #4d5f61;
    font-size: 0.95rem;
    line-height: 1.6;
}
.about-cta {
    padding-top: 2.5rem;
}
/** ===== ACADEMIC BACKGROUND ===== **/
.academic-section {
    background-color: #e8ddca;
    padding: 5rem 10rem;
    box-sizing: border-box;
}
.academic-timeline {
    position: relative;
    margin: 0;
    padding: 2rem 0 0 2.5rem;
    list-style: none;
}
.academic-timeline::before {
    content: "";
    position: absolute;
    top: 2.7rem;
    bottom: 2.1rem;
    left: 0;
    width: 1px;
    background-color: #1f4e5e;
}
.academic-item {
    position: relative;
    margin: 0;
    padding: 0 0 1.8rem;
}
.academic-item:last-child {
    padding-bottom: 0;
}
.academic-item::before {
    content: "";
    position: absolute;
    top: 0.65rem;
    left: -2.5rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: #c07959;
    transform: translateX(-50%);
}
.academic-item h3 {
    margin: 0;
    color: #1f4e5e;
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.35;
}
.academic-item p {
    margin: 0.45rem 0 0;
    color: #4d5f61;
    font-size: 0.9rem;
    line-height: 1.5;
}
/** ------------------------
        SERVICES HTML
------------------------- **/
/** ===== HERO ===== **/
#services-hero {
    display: flex;
    gap: 2rem;
    justify-content: space-around;
    background-color: #235161;
    padding: 5rem 10rem;
}
.services-banner h1 {
    font-family: 'Fraunces';
    font-weight: 300;
    color: #fff;
    font-size: 3.5rem;
    padding: 1.5rem 2rem 1rem 0;
    margin: 0;
    line-height: 1.1;
}
.services-banner p {
    font-size: 1.1rem;
    font-weight: 100;
    color: #c0c0c0;
    padding: 0 7rem 2.5rem 0;
    margin: 0;
    line-height: 1.6;
}
.services-image img {
    width: 500px;
    height: auto;
    border-radius: 35px;
}
/** ===== WHAT FOR ===== **/
.description-container p {
    color: #24343a;
    font-size: 1rem;
}
.what-for-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.what-for-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    width: 580px;
    background-color: #fff;
    padding: 1.5rem 1rem;
    border-radius: 25px;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.what-for-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}
.icon {
    font-size: 1.4rem;
}
.help-card-content h3 {
    font-family: 'Fraunces';
    font-weight: 450;
    font-size: 1.02rem;
    color: #235161;
    padding-bottom: 0rem;
    line-height: 1.6;
    margin: 0;
}
.help-card-content p {
    font-size: 0.87rem;
    padding: 0;
    margin: 0;
    color: #626464;
    line-height: 1.6;
}
/* ===== FOR WHO ===== */
#audience {
    background-color: #e8ddca;
    padding: 5rem 10rem;
}
.audience-title {
    text-align: center;
}
.audience-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.8rem 12rem;
}
.audience-card {
    background-color: #fff;
    padding: 1rem 2rem;
    border-radius: 15px;
}
.audience-card p {
    font-size: 0.9rem;
    color: #626464;
}
/** ===== HOW I WORK THIS PROCESS ===== **/
#how-process {
    background-color: #f7f6f2;
    padding: 5rem 10rem;
}
.process-title-container h2 {
    font-family: 'Fraunces';
    color: #235161;
    font-weight: 350;
    font-size: 2.4rem;
    margin: 0;
    padding: 1rem 45rem 0 0;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2rem 0;
}
.step-item {
    display: flex;
    flex-direction: column;
}
.step-number {
    font-family: 'Fraunces', serif;
    font-size: 1rem;
    color: #9cb1b5;
    padding-top: 1.5rem;
    border-top: 2px solid #c48b71;
}
.step-title {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #1e454e;
    margin: 0;
    padding: 1rem 0 0 0;
}
.step-description {
    font-family: 'Hind', sans-serif;
    font-size: 0.9rem;
    color: #555555;
}
/** ===== FAQ ===== **/
.faq-container {
    background-color: #e8ddca;
    padding: 4rem 20rem 6rem 20rem;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 2rem;
}
.faq-item {
    background-color: #f7f5f2;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}
.faq-title {
    font-family: 'Fraunces', serif;
    font-size: 1rem;
    font-weight: 400;
    color: #1e454e;
}
.faq-icon {
    font-family: 'Hind', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: #c48b71;
    margin-left: 16px;
    line-height: 1;
    transition: transform 0.2s ease;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
    padding: 0 28px;
}
.faq-answer p {
    font-family: 'Hind', sans-serif;
    font-size: 0.9rem;
    color: #555555;
    line-height: 1.6;
    padding-bottom: 24px;
}
.faq-item.active .faq-answer {
    max-height: 300px;
    transition: max-height 0.35s cubic-bezier(1, 0, 1, 0), padding 0.3s ease;
}
/** ------------------------
        RESOURCES HTML
------------------------- **/
.section-resources {
    background-color: #f7f6f2;
    padding: 5rem 10rem;
}
.section-resources h2 {
    color: #1e4f5c;
    font-family: 'Fraunces';
    font-weight: 350;
    font-size: 2.2rem;
    padding: 0;
    margin-top: 0.5rem;
}
.section-books {
    background-color: #e9e4d9;
    padding: 5rem 10rem;
}
.section-books-container {
    max-width: 1200px;
    margin: 0 auto;
}
.filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    margin-top: 20px;
}
.filter-btn {
    background: transparent;
    border: 1px solid #e5e0d8;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #2c363f;
    cursor: pointer;
    transition: all 0.2s ease;
}
.filter-btn:hover {
    border-color: #2c363f;
}
.filter-btn.active {
    background-color: #2c363f;
    color: #ffffff;
    border-color: #2c363f;
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.card-header .icon {
    font-size: 1.5rem;
}
.badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background-color: #f3ece1;
    color: #966042;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}
.card h3 {
    font-family: 'Fraunces';
    font-size: 1rem;
    color: #1e4f5c;
    font-weight: 450;
    margin-bottom: 12px;
    line-height: 1.2;
}
.card p {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 24px;
    flex-grow: 1;
}
.btn-primary {
    display: inline-block;
    text-align: center;
    background-color: #2c363f;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}
.btn-primary:hover {
    background-color: #1f272e;
}
.books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-top: 2rem;
}
.book-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.book-cover img {
    width: 140px;
    height: 210px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.book-info {
    display: flex;
    flex-direction: column;
}
.book-info .badge {
    align-self: flex-start;
    margin-bottom: 8px;
}
.book-info h3 {
    font-family: 'Fraunces';
    color: #24343a;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
}
.book-info .author {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 8px;
}
.book-info p {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.3;
}
/** ------------------------
        CONTACT HTML
------------------------- **/
/** ===== CONTACT / FORM ===== **/
/* Honeypot antispam */
.form-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
.contact-left-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.contact-icon {
    font-size: 1.2rem;
}
.contact-description-container {
    display: flex;
    align-items: center;
}
.contact-card {
    padding: 0 0 0 0.5rem;
}
.contact-card p {
    margin: 0;
    padding-top: 0.1rem;
    color: #24343a;
    font-size: 0.9rem;
}
.contact-card h3 {
    margin: 0;
    padding: 0;
}
.form-container {
    background-color: #ffffff;
    max-width: 620px;
    width: 100%;
    padding: 45px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}
.form-title {
    font-family: 'Fraunces';
    font-size: 1.5rem;
    font-weight: 400;
    color: #1d4d5a;
    margin: 0;
    padding-bottom: 2rem;
}
.form-subtitle {
    font-size: 0.92rem;
    color: #666666;
    margin-bottom: 2.5rem;
    line-height: 1.4;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-row {
    display: flex;
    gap: 16px;
}
.form-row .form-group {
    flex: 1;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #2c3e50;
    text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background-color: #f7f7f7;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    color: #333333;
    outline: none;
    transition: all 0.2s ease-in-out;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0a0a0;
    font-weight: 400;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background-color: #ffffff;
    border-color: #1d4d5a;
    box-shadow: 0 0 0 3px rgba(29, 77, 90, 0.1);
}
.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    color: #555555;
}
.select-wrapper {
    position: relative;
}
.select-wrapper::after {
    content: '∨';
    font-size: 0.8rem;
    font-weight: bold;
    color: #777777;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.form-group textarea {
    resize: vertical;
    min-height: 110px;
}
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 4px;
}
.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #1d4d5a;
    cursor: pointer;
}
.checkbox-group label {
    font-size: 0.8rem;
    color: #666666;
    line-height: 1.4;
}
.checkbox-group label a {
    color: #c07a5f;
    text-decoration: none;
}
.checkbox-group label a:hover {
    text-decoration: underline;
}
.btn-submit {
    background-color: #1d4d5a;
    color: #ffffff;
    border: none;
    border-radius: 25px;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.btn-submit:hover {
    background-color: #153a44;
}
.btn-submit:active {
    transform: scale(0.99);
}
.form-footer-note {
    text-align: center;
    font-size: 0.78rem;
    color: #777777;
    margin-top: 8px;
}

/* Flexibilización de héroes y contenedores de texto */
#second-page-hero,
#services-hero {
    box-sizing: border-box;
    width: 100%;
}
#second-page-hero p,
.services-banner p {
    max-width: 680px;
}
.process-title-container h2 {
    padding-right: 0;
    max-width: 700px;
}

/* Animación y Hover de Cards de Recursos, Libros y FAQ */
.card, 
.book-card, 
.audience-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover, 
.book-card:hover, 
.audience-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#second-page-hero h1,
.services-banner h1,
.form-title {
    animation: fadeInUp 0.7s ease-out forwards;
}
#second-page-hero p,
.services-banner p,
.form-subtitle {
    animation: fadeInUp 0.7s ease-out 0.2s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Micro-interacción en botones primarios y formulario */
.btn-primary,
.btn-submit,
.filter-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::after,
.btn-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-primary:hover::after,
.btn-submit:hover::after {
    left: 100%;
}


/** ==========================================================================
    3. RESPONSIVE DESIGN (@MEDIA QUERIES)
    ========================================================================== **/

/* --------------------------------------------------------------------------
   A. LAPTOPS Y ESCRITORIO MEDIANO (Máx. 1200px)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    
    #second-page-hero {
        padding: 4rem 5%;
    }

    #second-page-hero p {
        padding-right: 0;
    }

    .academic-section,
    #services-hero,
    #audience,
    #how-process,
    .section-resources,
    .section-books {
        padding-left: 5%;
        padding-right: 5%;
    }

    .faq-container {
        padding: 4rem 10%;
    }

    .audience-container {
        padding: 1.8rem 0;
    }

    .services-banner p {
        padding-right: 0;
    }

    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* --------------------------------------------------------------------------
   B. TABLETS (Máx. 992px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {

    /** --- About Page --- **/
    #second-page-hero h1 {
        font-size: 3rem;
    }

    .presentation h2 {
        font-size: 2.2rem;
    }

    .academic-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    /** --- Services Page --- **/
    #services-hero {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 4rem;
        padding-bottom: 4rem;
        gap: 2.5rem;
    }

    .services-banner h1 {
        font-size: 2.8rem;
    }

    /* Imagen centrada en Services Hero */
    .services-image {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .services-image img {
        width: 100%;
        max-width: 450px;
    }

    .audience-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .faq-container {
        padding: 4rem 5%;
    }

    /** --- Resources Page --- **/
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .book-card {
        padding: 16px;
    }

    .book-cover img {
        width: 110px;
        height: 165px;
    }

    /** --- Contact Page --- **/
    .form-container {
        max-width: 100%;
        padding: 35px 30px;
    }
}


/* --------------------------------------------------------------------------
   C. MÓVILES (Máx. 600px)
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {

    /* Rellenos generales de sección para teléfonos */
    #second-page-hero,
    .academic-section,
    #services-hero,
    #audience,
    #how-process,
    .section-resources,
    .section-books,
    .faq-container {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    /** --- About Page --- **/
    #second-page-hero h1 {
        font-size: 2.4rem;
    }

    .contact-container {
        border-radius: 18px;
        padding: 1.5rem;
    }

    .academic-timeline {
        padding-left: 1.5rem;
    }
    .academic-timeline::before {
        bottom: 3.7rem;
    }

    .academic-item::before {
        left: -1.5rem;

    }

    /** --- Services Page --- **/
    .services-banner h1 {
        font-size: 2.3rem;
    }

    .what-for-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem;
        border-radius: 18px;
        width: 100%;
        max-width: 580px;
    }

    .audience-container,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .process-title-container h2 {
        font-size: 2rem;
    }

    .faq-question {
        padding: 18px 20px;
    }

    .faq-answer {
        padding: 0 20px;
    }

    /** --- Resources Page --- **/
    .cards-grid,
    .books-grid {
        grid-template-columns: 1fr;
    }

    .book-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .book-cover img {
        width: 100%;
        max-width: 160px;
        height: auto;
        margin-bottom: 10px;
    }

    .filter-group {
        gap: 8px;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    /** --- Contact Page --- **/
    .form-container {
        padding: 25px 20px;
        border-radius: 12px;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .form-title {
        font-size: 1.3rem;
        padding-bottom: 1rem;
    }

    .form-subtitle {
        margin-bottom: 1.5rem;
    }
}