/* =========================================================
   GRUPO LAS LETRAS — HOME
   ========================================================= */


/* =========================================================
   HERO PRINCIPAL
   ========================================================= */

.hero {
    position: relative;

    min-height: calc(100vh - 88px);

    display: flex;
    align-items: center;

    padding: 80px 0;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 85% 50%,
            rgba(168, 138, 82, 0.10),
            transparent 35%
        );
}


/* =========================================================
   CONTENIDO DEL HERO
   ========================================================= */

.hero-content {
    display: grid;

    grid-template-columns: 1.05fr 0.95fr;

    align-items: center;

    gap: 70px;
}


/* =========================================================
   TEXTO
   ========================================================= */

.hero-text {
    max-width: 650px;
}


/* Pequeño título */

.small-title {
    display: inline-block;

    margin-bottom: 20px;

    color: var(--color-dorado);

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 4px;
}


/* Título principal */

.hero h1 {
    margin-bottom: 28px;

    max-width: 650px;

    font-size: clamp(3.5rem, 6vw, 6rem);

    letter-spacing: -1px;
}


/* Línea decorativa */

.hero h1::after {
    content: "";

    display: block;

    width: 65px;
    height: 2px;

    margin-top: 28px;

    background: var(--color-dorado);
}


/* Texto */

.hero-text p {
    max-width: 570px;

    margin-bottom: 12px;

    font-size: 15px;

    line-height: 1.9;
}


/* =========================================================
   BOTONES DEL HERO
   ========================================================= */

.hero-buttons {
    display: flex;
    align-items: center;

    gap: 15px;

    margin-top: 32px;
}


/* =========================================================
   CARRUSEL
   ========================================================= */

.hero-carousel {
    position: relative;

    width: 100%;
    max-width: 500px;

    height: 600px;

    margin-left: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--color-fondo-secundario);
}


/* Marco decorativo */

.hero-carousel::before {
    content: "";

    position: absolute;

    top: 25px;
    right: -25px;

    width: 100%;
    height: 100%;

    border: 1px solid var(--color-dorado);

    z-index: 0;
}


/* =========================================================
   SLIDES
   ========================================================= */

.carousel-slide {
    position: absolute;

    inset: 35px;

    z-index: 1;

    overflow: hidden;

    background: var(--color-blanco);

    box-shadow: var(--sombra-suave);

    opacity: 0;

    visibility: hidden;

    transition: opacity 0.6s ease;
}

.carousel-slide.active {
    opacity: 1;

    visibility: visible;
}

.carousel-slide img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   BOTONES DEL CARRUSEL
   ========================================================= */

.carousel-prev,
.carousel-next {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    z-index: 5;

    width: 44px;
    height: 44px;

    border: 1px solid rgba(255, 255, 255, 0.7);

    background: rgba(41, 39, 34, 0.75);

    color: var(--color-blanco);

    font-family: Georgia, serif;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;

    transition: var(--transicion);
}

.carousel-prev {
    left: 50px;
}

.carousel-next {
    right: 50px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--color-dorado);

    border-color: var(--color-dorado);
}


/* =========================================================
   SECCIONES
   ========================================================= */

.section {
    position: relative;

    padding: 110px 0;
}


/* =========================================================
   ENCABEZADO DE SECCIÓN
   ========================================================= */

.section-heading {
    position: relative;

    margin-bottom: 60px;
}

.section-heading span {
    display: block;

    margin-bottom: 14px;

    color: var(--color-dorado);

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 3px;
}

.section-heading h2 {
    margin-bottom: 20px;
}


/* =========================================================
   QUIÉNES SOMOS
   ========================================================= */

.about-content {
    max-width: 850px;
}

.about-text {
    padding-left: 30px;

    border-left: 2px solid var(--color-dorado);
}

.about-text p {
    margin-bottom: 20px;

    font-size: 16px;
    line-height: 2;
}

.text-link {
    display: inline-block;

    margin-top: 10px;

    color: var(--color-dorado);

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 1px;
    text-transform: uppercase;

    transition: var(--transicion);
}

.text-link:hover {
    color: var(--color-dorado-hover);

    transform: translateX(5px);
}


/* =========================================================
   SERVICIOS
   ========================================================= */

.services-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.service-card {
    padding: 35px 28px;

    background: var(--color-fondo);

    border: 1px solid var(--color-borde);

    transition: var(--transicion);
}

.service-card:hover {
    transform: translateY(-8px);

    border-color: var(--color-dorado);

    box-shadow: var(--sombra-suave);
}

.service-icon {
    margin-bottom: 20px;

    font-size: 28px;
}

.service-card h3 {
    margin-bottom: 14px;

    font-size: 25px;
}

.service-card p {
    font-size: 13px;
    line-height: 1.8;
}


/* =========================================================
   LIBROS
   ========================================================= */

.books-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 35px;
}

.book-card {
    background: var(--color-blanco);

    border: 1px solid var(--color-borde);

    overflow: hidden;

    transition: var(--transicion);
}

.book-card:hover {
    transform: translateY(-8px);

    box-shadow: var(--sombra-suave);
}

.book-cover {
    height: 420px;

    overflow: hidden;

    background: var(--color-fondo-secundario);
}

.book-cover img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.book-card:hover .book-cover img {
    transform: scale(1.03);
}

.book-info {
    padding: 25px;
}

.book-info h3 {
    margin-bottom: 5px;

    font-size: 27px;
}

.book-info .author {
    margin-bottom: 20px;

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 1px;
}


/* =========================================================
   BOTÓN CENTRADO
   ========================================================= */

.center-button {
    margin-top: 50px;

    text-align: center;
}


/* =========================================================
   INVITACIÓN A ESCRITORES
   ========================================================= */

.writers-section {
    position: relative;

    padding: 120px 0;

    background: var(--color-seccion-escritores);

    overflow: hidden;
}


/* =========================================================
   ELEMENTO DECORATIVO
   ========================================================= */

.writers-section::before {
    content: "“";

    position: absolute;

    top: -50px;
    right: 8%;

    font-family: var(--fuente-titulos);

    font-size: 300px;

    line-height: 1;

    color: rgba(255, 255, 255, 0.04);

    pointer-events: none;
}


/* =========================================================
   CONTENIDO
   ========================================================= */

.writers-content {
    position: relative;

    z-index: 1;

    max-width: 750px;
}


/* =========================================================
   PEQUEÑO TÍTULO
   ========================================================= */

.writers-content > span {
    display: block;

    margin-bottom: 18px;

    color: var(--color-dorado);

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 3px;
}


/* =========================================================
   TÍTULO
   ========================================================= */

.writers-content h2 {
    margin-bottom: 25px;

    color: #f2eee5;
}


/* =========================================================
   MENSAJE
   ========================================================= */

.writers-content p {
    max-width: 620px;

    margin-bottom: 32px;

    color: #d8d2c8;

    font-size: 15px;

    line-height: 1.9;
}


/* =========================================================
   APARTADO LITERARIO
   ========================================================= */

.literary-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 30px;
}

.literary-card {
    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    background: var(--color-blanco);

    border: 1px solid var(--color-borde);

    overflow: hidden;

    transition: var(--transicion);
}

.literary-card:hover {
    transform: translateY(-6px);

    box-shadow: var(--sombra-suave);
}

.literary-image {
    min-height: 330px;

    overflow: hidden;
}

.literary-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.literary-card:hover .literary-image img {
    transform: scale(1.04);
}

.literary-content {
    padding: 35px 30px;
}

.literary-content > span {
    color: var(--color-dorado);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 2px;
}

.literary-content h3 {
    margin: 15px 0;

    font-size: 28px;
}

.literary-content p {
    margin-bottom: 20px;

    font-size: 13px;
    line-height: 1.8;
}

.literary-content a {
    color: var(--color-dorado);

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 1px;
    text-transform: uppercase;

    transition: var(--transicion);
}

.literary-content a:hover {
    color: var(--color-dorado-hover);
}


/* =========================================================
   CONTACTO
   ========================================================= */

.contact-section {
    padding: 100px 0;

    background: var(--color-fondo-secundario);

    border-top: 1px solid var(--color-borde);
}

.contact-content {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 50px;
}

.contact-content > div:first-child {
    max-width: 700px;
}

.contact-content span {
    display: block;

    margin-bottom: 15px;

    color: var(--color-dorado);

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 3px;
}

.contact-content h2 {
    margin-bottom: 20px;
}

.contact-content p {
    max-width: 600px;
}

.contact-buttons {
    display: flex;

    flex-direction: column;

    gap: 12px;

    flex-shrink: 0;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    background: #292722;

    padding-top: 70px;

    color: #f2eee5;
}

.footer p {
    color: rgba(242, 238, 229, 0.65);
}

.footer h3 {
    color: #f2eee5;
}

.footer a {
    color: rgba(242, 238, 229, 0.7);

    transition: var(--transicion);
}

.footer a:hover {
    color: var(--color-dorado);
}

.footer-bottom {
    width: 100%;

    margin-top: 60px;

    padding: 25px 20px;

    text-align: center;

    border-top: 1px solid rgba(242, 238, 229, 0.12);
}

.footer-bottom p {
    margin: 0;

    color: rgba(242, 238, 229, 0.5);

    font-size: 11px;

    text-align: center;
}