/* ============================================
   NATA DE LECHE - ESTILOS PRINCIPALES
   Paleta: Amarillo #F4D03F, Morado #A855F7, Morado Oscuro #581C87
   ============================================ */

:root {
    --amarillo: #F4D03F;
    --amarillo-claro: #F7DC6F;
    --amarillo-hover: #E8C430;
    --morado: #A855F7;
    --morado-claro: #C084FC;
    --morado-oscuro: #581C87;
    --morado-muy-oscuro: #4C1D95;
    --blanco: #FFFFFF;
    --gris-claro: #F8F9FA;
    --gris: #6C757D;
    --negro: #212529;
}

/* ============================================
   RESET Y BASE
   ============================================ */
body {
    font-family: 'Inter', sans-serif;
    color: var(--negro);
    overflow-x: hidden;
}

main > .container {
    padding: 70px 15px 20px;
}

/* ============================================
   NAVEGACION
   ============================================ */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 16px !important;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--morado) !important;
    background: rgba(168, 85, 247, 0.1);
}

.active-nav {
    color: var(--morado) !important;
    background: rgba(168, 85, 247, 0.15);
    border-radius: 8px;
}

.btn-nav-cta {
    background: var(--morado-oscuro);
    color: var(--blanco) !important;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-nav-cta:hover {
    background: var(--morado);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(88, 28, 135, 0.3);
}

/* ============================================
   BOTONES PRINCIPALES
   ============================================ */
.btn-primary-custom {
    background: var(--morado) !important;
    color: var(--blanco) !important;
    border: none !important;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-primary-custom:hover {
    background: var(--morado-oscuro) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 28, 135, 0.3);
    color: var(--blanco) !important;
}

.btn-secondary-custom {
    background: var(--amarillo) !important;
    color: var(--morado-oscuro) !important;
    border: none !important;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-secondary-custom:hover {
    background: var(--amarillo-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 208, 63, 0.4);
    color: var(--morado-oscuro) !important;
}

/* Botón morado oscuro - contrasta bien en fondos amarillos */
.btn-dark-custom {
    background: var(--morado-oscuro) !important;
    color: var(--blanco) !important;
    border: none !important;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-dark-custom:hover {
    background: var(--morado-muy-oscuro) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 28, 135, 0.4);
    color: var(--blanco) !important;
}

.btn-outline-custom {
    background: transparent;
    color: var(--morado-oscuro);
    border: 2px solid var(--morado-oscuro);
    padding: 10px 28px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: var(--morado-oscuro);
    color: var(--blanco);
}

/* Botones legacy - mantener compatibilidad */
.cambia {
    background: var(--morado);
    color: var(--blanco);
    border: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.cambia:hover {
    background: var(--morado-oscuro);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 28, 135, 0.3);
    color: var(--blanco);
}

.cambia2 {
    background: var(--morado);
    color: var(--blanco);
    border: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.cambia2:hover {
    background: var(--morado-oscuro);
    color: var(--blanco);
}

/* ============================================
   SECCIONES
   ============================================ */
.section-title {
    color: var(--morado-oscuro);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--morado);
    font-weight: 500;
}

.bg-amarillo {
    background-color: var(--amarillo) !important;
}

.bg-morado {
    background-color: var(--morado) !important;
}

.bg-morado-oscuro {
    background-color: var(--morado-oscuro) !important;
}

.text-morado {
    color: var(--morado) !important;
}

.text-morado-oscuro {
    color: var(--morado-oscuro) !important;
}

.text-amarillo {
    color: var(--amarillo) !important;
}

/* ============================================
   CARDS
   ============================================ */
.card-producto {
    background: var(--blanco);
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.card-producto:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(88, 28, 135, 0.15);
}

.card-producto img {
    height: 200px;
    object-fit: cover;
}

.card-servicio {
    background: var(--blanco);
    border: none;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.card-servicio:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(88, 28, 135, 0.15);
}

.card-servicio .icon-wrapper {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    background: var(--amarillo);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    overflow: hidden;
}

.card-servicio .icon-wrapper img,
.card-servicio .icon-wrapper svg {
    width: 45px !important;
    height: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
    object-fit: contain;
}

/* ============================================
   FLIP BOX - Servicios
   ============================================ */
.flip-box {
    background-color: transparent;
    perspective: 1000px;
    border-radius: 20px;
}

.flip-box-inner {
    position: relative;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-box:hover .flip-box-inner {
    transform: rotateY(180deg);
}

.flip-box-front, .flip-box-back {
    position: absolute;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.flip-box-back {
    margin-top: -24px;
    margin-left: 0px !important;
    width: 100%;
    color: white;
    transform: rotateY(180deg);
}

/* ============================================
   HERO / BANNER
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--amarillo) 0%, var(--amarillo-claro) 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-title {
    color: var(--morado-oscuro);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero-subtitle {
    color: var(--morado);
    font-size: 1.25rem;
    font-weight: 500;
}

/* ============================================
   GALERIA
   ============================================ */
.galeria-item {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    height: 220px;
}

.galeria-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(88, 28, 135, 0.2);
}

.galeria-item img {
    width: 100%;
    height: 220px !important;
    object-fit: cover;
    transition: all 0.4s ease;
}

.opacidad {
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    transition: all 0.4s ease;
}

.opacidad:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(88, 28, 135, 0.2);
}

/* ============================================
   TESTIMONIOS
   ============================================ */
.testimonio-card {
    background: var(--blanco);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.cuadroblancotestimonios {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.triangulo {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid white;
    margin: 0 auto;
}

/* ============================================
   FORMULARIOS
   ============================================ */
.form-control:focus {
    border-color: var(--morado);
    box-shadow: 0 0 0 0.2rem rgba(168, 85, 247, 0.25);
}

.form-control {
    border-radius: 10px;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    transition: all 0.3s ease;
}

.form-control:hover {
    border-color: var(--morado-claro);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--morado-oscuro);
    color: var(--blanco);
    padding: 40px 0 20px;
}

.footer a {
    color: var(--amarillo);
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--blanco);
}

.social-icon {
    width: 45px;
    height: 45px;
    background: var(--amarillo);
    color: var(--morado-oscuro) !important;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    margin: 0 5px;
    text-decoration: none;
}

.social-icon i {
    color: var(--morado-oscuro) !important;
}

.social-icon:hover {
    background: var(--blanco);
    transform: translateY(-3px);
    color: var(--morado-oscuro) !important;
}

/* Iconos de contacto - fondo blanco */
.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--blanco);
    color: var(--morado-oscuro) !important;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.contact-icon i {
    color: var(--morado-oscuro) !important;
}

/* Redes sociales en sección morada */
.social-icon-light {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--blanco) !important;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    margin: 0 5px;
    text-decoration: none;
}

.social-icon-light i {
    color: var(--blanco) !important;
}

.social-icon-light:hover {
    background: var(--amarillo);
    transform: translateY(-3px);
}

.social-icon-light:hover i {
    color: var(--morado-oscuro) !important;
}

/* ============================================
   MODAL IMAGENES
   ============================================ */
.myImg {
    cursor: pointer;
    transition: 0.3s;
}

.myImg:hover {
    opacity: 0.85;
}

.modal2 {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 80px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
}

.modal-content2 {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--amarillo);
    font-size: 45px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover {
    color: var(--blanco);
}

#caption {
    margin: auto;
    display: block;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
}

.modal-content2, #caption {
    animation: zoom 0.4s;
}

@keyframes zoom {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ============================================
   ANIMACIONES
   ============================================ */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   UTILIDADES
   ============================================ */
.rounded-20 {
    border-radius: 20px !important;
}

.rounded-25 {
    border-radius: 25px !important;
}

.shadow-custom {
    box-shadow: 0 10px 40px rgba(88, 28, 135, 0.1);
}

.shadow-custom-hover:hover {
    box-shadow: 0 15px 50px rgba(88, 28, 135, 0.2);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--amarillo);
        padding: 20px;
        border-radius: 15px;
        margin-top: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-item {
        margin: 5px 0;
    }

    .btn-nav-cta {
        margin-top: 10px;
        display: inline-block;
    }

    .hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 500px;
    }

    .modal-content2 {
        max-width: 95%;
    }
}

/* ============================================
   SWIPER CUSTOM
   ============================================ */
.swiper-pagination-bullet {
    background: var(--morado-oscuro);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--morado);
    opacity: 1;
}

/* ============================================
   LEGACY - Mantener compatibilidad
   ============================================ */
.bg-principal {
    color: var(--morado) !important;
}

.bgmenuprincipal {
    color: var(--morado-oscuro) !important;
    font-weight: 500;
}

.activeh {
    color: var(--morado) !important;
    background: rgba(168, 85, 247, 0.15);
    border-radius: 8px;
}

.botonesFoo {
    background: var(--morado);
    border-color: var(--morado);
    color: var(--blanco);
}

.botonesFoo:hover {
    background: var(--amarillo);
    border-color: var(--amarillo);
    color: var(--morado-oscuro);
}

/* ============================================
   GRIDVIEW Y FORMULARIOS YII
   ============================================ */
.not-set {
    color: #c55;
    font-style: italic;
}

a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}
