/* Custom Styles for A&R Estudio Jurídico */

/* HERO SLIDER STYLES */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    animation: kenBurns 25s ease-in-out infinite;
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    50% {
        transform: scale(1.08) translate(-1%, -1%);
    }
    100% {
        transform: scale(1) translate(0, 0);
    }
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(4, 4, 4, 0.75) 0%, rgba(85, 26, 33, 0.6) 100%);
}

/* DIAGONAL CUT */
.hero-diagonal-cut {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: white;
    clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 50%);
    z-index: 10;
}

/* SLIDE INDICATORS */
.slide-indicators {
    position: absolute;
    bottom: 180px;
    right: 50px;
    z-index: 20;
    display: flex;
    gap: 12px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(236, 231, 228, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #ece7e4;
    transform: scale(1.3);
}

.indicator:hover {
    background: #ece7e4;
}

/* SLIDE CONTENT ANIMATION */
.slide-content {
    position: relative;
    z-index: 15;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s ease 0.5s;
}

.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

/* HERO TEXT STYLES */
.hero-slider .slide-content h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.hero-slider .slide-content .uppercase {
    font-weight: 500;
    letter-spacing: 0.15em;
}

.hero-slider .slide-content .border-2 {
    border-radius: 50px;
    transition: all 0.5s ease;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.hero-slider .slide-content .border-2:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* NAVBAR STYLES */
.navbar-transparent {
    background: transparent;
    transition: all 0.3s ease;
}

.navbar-solid {
    background: #551a21;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* NOSOTROS & EQUIPO SECTIONS */
#nosotros-intro,
#equipo {
    position: relative;
}

/* Animaciones */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes bounceSlow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes arrowDown {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(5px);
    }
}

.animate-slide-in-left {
    animation: slideInLeft 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-spin-slow {
    animation: spinSlow 30s linear infinite;
}

.animate-bounce-slow {
    animation: bounceSlow 2s ease-in-out infinite;
}

.animate-arrow-down {
    animation: arrowDown 1.5s ease-in-out infinite;
}

/* Reveal animations on scroll */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-text:nth-child(1) { transition-delay: 0.1s; }
.reveal-text:nth-child(2) { transition-delay: 0.3s; }
.reveal-text:nth-child(3) { transition-delay: 0.5s; }
.reveal-text:nth-child(4) { transition-delay: 0.7s; }

/* Stat items animation */
.stat-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.stat-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-item:nth-child(1) { transition-delay: 0.2s; }
.stat-item:nth-child(2) { transition-delay: 0.4s; }
.stat-item:nth-child(3) { transition-delay: 0.6s; }

/* Image parallax effect */
#nosotros-intro img,
#equipo img {
    transition: transform 0.3s ease-out;
}

/* FADE IN SECTION */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #ece7e4;
}

::-webkit-scrollbar-thumb {
    background: #850808;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #551a21;
}

/* SMOOTH SCROLLING */
html {
    scroll-behavior: smooth;
}

/* FOOTER PROFESIONAL */
footer.bg-ar-dark {
    font-family: 'Lato', sans-serif;
}

footer .font-serif {
    font-family: 'Playfair Display', serif;
}

footer a:hover svg {
    transform: translateY(-3px) scale(1.1);
    transition: transform 0.3s ease;
}

/* Scroll to Top Button */
#scroll-to-top {
    z-index: 40;
}

#scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(133, 8, 8, 0.4);
}

/* Footer Links Animation */
footer ul li a {
    position: relative;
    display: inline-block;
}

footer ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #850808;
    transition: width 0.3s ease;
}

footer ul li a:hover::after {
    width: 100%;
}

/* LOGO BALANZA - Animaciones sutiles */
header a:hover svg,
footer .flex.items-center:hover svg {
    transform: translateY(-2px);
    transition: transform 0.4s ease;
}

header svg, footer svg {
    flex-shrink: 0;
}

/* INSIGHTS CARRUSEL */
#insights-track {
    display: flex;
    transition: transform 0.5s ease-out;
}

.insights-dot.active {
    background-color: #850808 !important;
    transform: scale(1.3);
}

/* ÁREAS DE PRÁCTICA - DISEÑO EMPRESARIAL */
.area-card {
    position: relative;
    min-height: 280px;
}

.area-card:hover {
    background-color: #040404;
}

.area-card .group-hover\:max-h-40 {
    max-height: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
}

.area-card:hover .group-hover\:max-h-40 {
    max-height: 160px;
}

.area-card .absolute.top-4.right-6 {
    transition: all 0.6s ease;
}

.area-card svg {
    transition: all 0.5s ease;
}

.area-card:hover svg {
    transform: scale(1.1);
}

.area-card h3 {
    transition: all 0.5s ease;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    #nosotros-intro .absolute.left-0 {
        clip-path: polygon(0 0, 100% 0, 100% 40%, 0 100%);
    }
    
    #nosotros-intro img,
    #equipo img {
        max-height: 60vh;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        min-height: 500px;
    }
    
    .hero-diagonal-cut {
        height: 100px;
        clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 30%);
    }
    
    .hero-slider .slide-content h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero-slider .slide-content .text-sm {
        font-size: 0.75rem;
    }
    
    .slide-indicators {
        bottom: 130px;
        right: 20px;
    }
    
    #nosotros-intro,
    #equipo {
        min-height: auto;
        padding: 4rem 0;
    }
    
    #nosotros-intro .absolute.left-0 {
        display: none;
    }
    
    #nosotros-intro .grid,
    #equipo .grid {
        gap: 2rem;
    }
    
    #nosotros-intro .order-2,
    #equipo .order-2 {
        order: -1 !important;
    }
    
    #nosotros-intro img,
    #equipo img {
        max-height: 50vh;
        clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
    }
    
    #nosotros-intro .order-1,
    #equipo .order-1 {
        order: 0 !important;
        text-align: center;
    }
    
    #nosotros-intro .space-y-6,
    #equipo .space-y-6 {
        text-align: left;
    }
    
    #nosotros-intro .mt-12,
    #equipo .mt-12 {
        text-align: center;
    }
    
    #nosotros-intro .grid.grid-cols-3,
    #equipo .grid.grid-cols-3 {
        text-align: center;
    }
    
    .hero-slider .slide-content .border-2 {
        font-size: 0.9rem;
        padding: 0.6rem 1.5rem;
    }
    
    footer .grid {
        gap: 2rem;
    }
    
    header a svg {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    header a .text-3xl {
        font-size: 1.25rem;
    }
    
    footer .flex.items-center svg {
        width: 4rem;
        height: 4rem;
    }
    
    footer .text-5xl {
        font-size: 2.5rem;
    }
    
    #insights-prev,
    #insights-next {
        display: none;
    }
    
    #scroll-indicator {
        bottom: 4rem;
    }
    
    .area-card .absolute.top-4.right-6 {
        font-size: 5rem;
    }
    
    .area-card {
        min-height: 220px;
        padding: 2rem !important;
    }
}

@media (max-width: 480px) {
    .hero-slider .slide-content h1 {
        font-size: 1.5rem;
    }
    
    #nosotros-intro img,
    #equipo img {
        max-height: 40vh;
    }
    
    .area-card .absolute.top-4.right-6 {
        font-size: 4rem;
    }
    
    .area-card h3 {
        font-size: 1.5rem !important;
    }
}

/* PRINT STYLES */
@media print {
    header, footer, .no-print, #scroll-indicator {
        display: none;
    }
}