/* Estilos personalizados */
body {
    font-family: 'Lato', sans-serif;
    background-color: #dde9ce !important;
    /* Color de fondo solicitado */
    color: #343a40;
    /* Gris oscuro para mejor contraste */
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
    /* Prevenir scroll horizontal indeseado */
}

h1,
h2,
h3,
h4,
h5,
h6,
.card-title,
.modal-title {
    /* Aplicar Playfair a títulos */
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    /* Títulos más gruesos */
}

/* --- ESTILOS NAVBAR Y HERO SECTION (NO MODIFICAR SEGÚN PETICIÓN) --- */
.navbar-light .navbar-brand,
.navbar-light .navbar-nav .nav-link {
    color: #463c68;
}

.navbar-brand {
    /* Asegurar peso y tamaño del brand */
    font-weight: bold;
    font-family: 'Playfair Display', serif;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #463c68;
    font-weight: bold;
    /* Mantener el hover original */
}

.navbar-light .navbar-toggler {
    border-color: #463c68;
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    content: "";
    background: no-repeat center center;
    background-size: 100%;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(70, 60, 100, 0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar {
    /* Asegurar el color de fondo del navbar y padding */
    background-color: #dde9ce !important;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.hero-section {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: url('../imagenes/3.png') center/cover no-repeat; /* Ajustada la ruta para CSS */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    text-align: center;
}

    .hero-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    .hero-section > * {
        position: relative;
        z-index: 2;
    }

.hero-text-custom {
    font-size: 1.2rem;
    font-weight: 300;
    margin-top: 0;
    align-self: flex-start;
    text-align: left;
}

.hero-button-custom {
    margin-top: 28%;
}

@media (max-width: 992px) {
    .hero-section {
        height: 450px;
        padding: 15px;
    }

    .hero-text-custom {
        font-size: 1.1rem;
    }

    .hero-button-custom {
        margin-top: 45%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 400px;
        padding: 10px;
    }

    .hero-text-custom {
        font-size: 1rem;
    }

    .hero-button-custom {
        margin-top: 60%;
    }

    /* Mantener el icono original del toggler */
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(70, 60, 100, 0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
}

/* --- FIN ESTILOS NAVBAR Y HERO SECTION --- */


/* --- Estilos Generales de Sección y Títulos --- */
.section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }
    /* Reducir padding en móvil */
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.8rem;
    color: #495057;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.1rem;
        margin-bottom: 40px;
    }
}

/* --- Estilos Sección "Sobre Mí" --- */
#nosotros .card {
    /* Contenedor */
    border: none;
    box-shadow: none;
    background-color: transparent;
}

.about-image-container {
    height: 100%;
    min-height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    position: relative;
    /* Para pseudo-elementos si se necesitaran */
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}

.about-image-container:hover .about-image {
    transform: scale(1.03);
    /* Sutil zoom */
}

.about-text-content {
    /* Contenedor del texto */
    padding: 15px 0;
    /* Espacio vertical */
}

@media (min-width: 992px) {
    /* Padding izquierdo solo en pantallas grandes */
    .about-text-content {
        padding: 0 0 0 45px;
    }
}

#nosotros .card-text {
    /* Párrafos de texto */
    font-size: 1rem;
    margin-bottom: 1.4rem;
    color: #454545;
    /* Gris un poco más oscuro */
    text-align: justify;
    /* Justificar texto */
    hyphens: auto;
    /* Separación silábica */
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
}

    #nosotros .card-text:last-child {
        margin-bottom: 0;
        /* Sin margen inferior en el último párrafo */
    }

/* Responsive About */
@media (max-width: 991.98px) {
    .about-image-container {
        min-height: 350px;
        margin-bottom: 30px;
    }

    .about-text-content {
        padding: 0 15px;
    }
    /* Padding horizontal en móvil */
}

@media (max-width: 767.98px) {
    .about-image-container {
        min-height: 300px;
    }

    #nosotros .card-text {
        font-size: 0.95rem;
    }
}


/* --- Estilos Sección "Clases" --- */
#clases {
    background-color: #f8f9fa;
}

.clase-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    /* Más redondeado */
    overflow: hidden;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.06);
    /* Sombra más suave */
}

    .clase-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    }

    .clase-card img {
        height: 220px;
        width: 100%;
        object-fit: cover;
    }

    .clase-card .card-body {
        padding: 25px 20px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .clase-card .card-title {
        font-size: 1.3rem;
        color: #463c68;
        margin-bottom: 12px;
    }

    .clase-card .card-text {
        font-size: 0.9rem;
        color: #6c757d;
        flex-grow: 1;
        margin-bottom: 0;
        line-height: 1.5;
    }

@media (max-width: 767.98px) {
    #clases .col-sm-6 {
        flex: 0 0 auto;
        width: 50%;
    }
}

@media (max-width: 575.98px) {
    #clases .col-12 {
        flex: 0 0 auto;
        width: 100%;
    }

    .clase-card img {
        height: 240px;
    }
}


/* --- Estilos Modals (Pulidos) --- */
.modal-dialog {
    max-width: 750px;
}

@media (max-width: 991.98px) {
    .modal-dialog {
        max-width: 90%;
    }
}

.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background-color: #a38ed4;
    color: white;
    border-bottom: none;
    padding: 1.3rem 1.8rem;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.modal-title {
    font-size: 1.6rem;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

    .modal-header .btn-close:hover {
        opacity: 1;
    }

.modal-body {
    padding: 30px 35px;
    line-height: 1.7;
    color: #495057;
}

    .modal-body p {
        margin-bottom: 1.3rem;
    }

    .modal-body strong {
        color: #463c68;
    }

    .modal-body ul {
        padding-left: 25px;
        margin-bottom: 1.3rem;
    }

.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.8rem;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.modal .btn {
    padding: 10px 25px;
    font-weight: 500;
    border-radius: 8px;
    font-size: 1rem;
}

.modal .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

    .modal .btn-secondary:hover {
        background-color: #5a6268;
        border-color: #545b62;
    }

.modal .btn[target="_blank"] {
    background-color: #25D366;
    border-color: #25D366;
    color: white;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
}

    .modal .btn[target="_blank"]:hover {
        background-color: #1DAE50;
        border-color: #1DAE50;
        transform: scale(1.03);
    }

    .modal .btn[target="_blank"] i {
        margin-right: 8px;
    }

.modal-class-image-container {
    text-align: center;
    margin-bottom: 25px;
    width: 100%;
}

.modal-class-image {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 575.98px) {
    .modal-class-image {
        max-height: 280px;
    }

    .modal-body {
        padding: 20px 20px;
    }
}


/* --- Estilos Sección Contacto --- */
.contact-form-container {
    background-color: #fff;
    padding: 40px 50px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

@media (max-width: 768px) {
    .contact-form-container {
        padding: 30px 25px;
    }
}

.contact-form {
    max-width: none;
    margin: 0;
    text-align: left;
}

    .contact-form h4 {
        text-align: center;
        font-size: 1.8rem;
        margin-bottom: 10px;
        color: #463c68;
    }

    .contact-form p {
        text-align: center;
        color: #6c757d;
        margin-bottom: 30px;
    }

.form-label {
    font-weight: 400;
    color: #495057;
    margin-bottom: 0.4rem;
    display: block;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 11px 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    .form-control:focus {
        border-color: #a38ed4;
        box-shadow: 0 0 0 0.25rem rgba(163, 142, 212, 0.3);
    }

textarea.form-control {
    min-height: 120px;
}

.contact-form .btn-primary {
    padding: 11px 35px;
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 15px;
    background-color: #a38ed4;
    border-color: #a38ed4;
    border-radius: 8px;
    width: auto;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

    .contact-form .btn-primary:hover {
        background-color: #8a64b0;
        border-color: #8a64b0;
        transform: scale(1.02);
    }

.contact-form .text-center {
    margin-top: 20px;
}

/* --- Footer --- */
.footer {
    background-color: #dde9ce !important;
    color: #5a507a;
    text-align: center;
    padding: 45px 0;
    border-top: 1px solid #c8d3b9;
    margin-top: 60px;
}

    .footer p {
        margin-bottom: 20px;
        font-size: 0.95rem;
        font-weight: 500;
    }

.social-icons a {
    color: #775c8d;
    font-size: 30px;
    margin: 0 18px;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

    .social-icons a:hover {
        color: #463c68;
        transform: translateY(-3px) scale(1.1);
    }

/* --- Estilos Botón Volver Arriba (Refinados) --- */
#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1030;
    border: none;
    outline: none;
    background-color: #463c68;
    color: white;
    cursor: pointer;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease-in-out, background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    #backToTopBtn i.fas.fa-arrow-up {
        font-family: "Font Awesome 6 Free", "FontAwesome";
        font-weight: 900;
        font-size: 20px;
        color: white;
        line-height: 1;
        display: inline-block;
        vertical-align: middle;
    }

    #backToTopBtn:hover {
        background-color: #a38ed4;
        transform: scale(1.1);
    }

@media (max-width: 575.98px) {
    #backToTopBtn {
        bottom: 15px;
        right: 15px;
        width: 42px;
        height: 42px;
    }

        #backToTopBtn i.fas.fa-arrow-up {
            font-size: 18px;
        }
}
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: .65;
    transform: scale(.85) translateY(-.5rem) translateX(.15rem);
}
