/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

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

:root {
    --red: #E63946;
    --blue: #4A90E2;
    --white: #FFFFFF;
    --black: #1A1A1A;
    --cream: #FAF9F7;
    --gray: #8B8B8B;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--black);
    background: var(--white);
    line-height: 1.7;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
}

nav {
    background: var(--white);
    padding: 1.5rem 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.nav-logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--black);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--black);
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--blue);
}

.book-btn {
    background: var(--red);
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.book-btn:hover {
    background: #c4303b;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.25);
}

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 4rem 7%;
    background: linear-gradient(to right, var(--cream) 50%, var(--white) 50%);
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--black);
}

.hero-tagline {
    font-size: 1.35rem;
    color: var(--gray);
    margin-bottom: 1rem;
    font-style: italic;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.cta-primary {
    background: var(--red);
    color: var(--white);
    padding: 1.1rem 2.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    display: inline-block;
}

.cta-primary:hover {
    background: #c4303b;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--blue);
    font-family: 'Playfair Display', serif;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-photo {
    width: 100%;
    aspect-ratio: 3/4;
    background-image: url('assets/hero.png');
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.services {
    padding: 7rem 7%;
    background: var(--white);
}

.section-intro {
    max-width: 700px;
    margin: 0 auto 5rem auto;
    text-align: center;
}

.section-intro h2 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.section-intro p {
    font-size: 1.15rem;
    color: var(--gray);
    line-height: 1.8;
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.service {
    background: var(--cream);
    padding: 3rem;
    border-radius: 8px;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.service:nth-child(1) {
    border-left-color: var(--blue);
}

.service:nth-child(2) {
    border-left-color: var(--red);
}

.service:nth-child(3) {
    border-left-color: var(--blue);
}

.service:nth-child(4) {
    border-left-color: var(--red);
}

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

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.service h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service p {
    color: var(--gray);
    line-height: 1.8;
}

.credentials {
    padding: 7rem 7%;
    background: var(--cream);
}

.credentials-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.credentials-photo {
    width: 100%;
    aspect-ratio: 1;
    background-image: url('assets/perfil.png');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 4px solid var(--white);
    outline: 1px solid rgba(0, 0, 0, 0.05);
}

.credentials-content h2 {
    font-size: 2.75rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.credentials-text {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.9;
    margin-bottom: 3rem;
}

.credential-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.credential {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.credential-icon {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.credential-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.credential-text p {
    color: var(--gray);
    font-size: 0.95rem;
}

.appointment {
    padding: 7rem 7%;
    background: linear-gradient(135deg, #fafbfd 0%, #f0f2f5 100%);
    position: relative;
}

.appointment-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 4rem;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border-top: 5px solid var(--blue);
}

.booking-form {
    display: grid;
    gap: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field.full {
    grid-column: 1 / -1;
}

label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--black);
    margin-left: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input,
textarea,
select {
    padding: 1rem 1.25rem;
    border: 2px solid #edf2f7;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: #4a5568;
    background: #f8fafc;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--blue);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--white);
    padding: 1.25rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
    width: 100%;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3);
}

footer {
    background: var(--black);
    color: var(--white);
    padding: 3rem 7%;
    text-align: center;
}

@media (max-width: 1024px) {

    .hero-container,
    .credentials-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .appointment-container {
        padding: 2rem;
    }
}

/* Styles for Books Section */
.books {
    padding: 7rem 7%;
    background: var(--cream);
}

.books-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.book-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.book-cover {
    width: 100%;
    max-width: 160px;
    height: 240px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.book-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.book-card p {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.buy-btn {
    background: transparent;
    color: var(--blue);
    border: 2px solid var(--blue);
    padding: 0.6rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
}

.buy-btn:hover {
    background: var(--blue);
    color: var(--white);
}

/* Bundle Special Style */
.book-card.bundle {
    border: 2px solid var(--blue);
    position: relative;
    overflow: hidden;
}

.book-card.bundle::before {
    content: "Oferta";
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--blue);
    color: var(--white);
    padding: 0.2rem 3rem;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: bold;
}

.book-placeholder {
    width: 100%;
    max-width: 160px;
    height: 240px;
    background: #f0f0f0;
    border: 2px dashed #ccc;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.buy-btn.disabled {
    border-color: #ccc;
    color: #ccc;
    pointer-events: none;
    cursor: default;
}