/* ====== MODERN.CSS - Plásticos Santana ====== */
/* Custom styles to complement Tailwind CSS CDN */

/* ====== Base ====== */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: #a9b7e7;
    color: #0f193b;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

/* ====== Hero Carousel ====== */
.heroSwiper .hero-prev,
.heroSwiper .hero-next {
    opacity: 0;
    transition: opacity .3s;
}
.heroSwiper:hover .hero-prev,
.heroSwiper:hover .hero-next {
    opacity: 1;
}
@media (max-width: 640px) {
    .heroSwiper .hero-prev,
    .heroSwiper .hero-next {
        display: none !important;
    }
}
.heroSwiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,.5);
    opacity: 1;
    border-radius: 9999px;
    transition: all .3s;
}
.heroSwiper .swiper-pagination-bullet-active {
    background: #f48725;
    width: 28px;
}

/* ====== Custom Scrollbar ====== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #a9b7e7;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3854b0;
}

/* ====== Swiper Custom ====== */
.swiper-pagination-bullet {
    width: 10px !important;
    height: 10px !important;
    background: white !important;
    opacity: 0.5 !important;
    transition: all 0.3s ease !important;
}
.swiper-pagination-bullet-active {
    opacity: 1 !important;
    width: 28px !important;
    border-radius: 999px !important;
    background: #f48725 !important;
}
.heroSwiper .swiper-button-prev,
.heroSwiper .swiper-button-next {
    opacity: 0;
    transition: opacity 0.3s;
}
.heroSwiper:hover .swiper-button-prev,
.heroSwiper:hover .swiper-button-next {
    opacity: 1;
}

/* ====== Glass Effect ====== */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.glass-dark {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ====== Noise Texture Overlay ====== */
.noise {
    position: relative;
}
.noise::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* ====== Animations ====== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slide-in-right {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes scale-in {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}
.animate-shimmer {
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}
.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}
.animate-scroll {
    animation: scroll 30s linear infinite;
}

/* ====== Prose / CMS Content ====== */
.prose {
    line-height: 1.75;
}
.prose h2, .page-content h2, .blog-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 0.75em;
    color: #162558;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}
.prose h3, .page-content h3, .blog-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #1e3275;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}
.prose p, .page-content p, .blog-content p {
    margin-bottom: 1.25em;
    color: #4b5563;
}
.prose ul, .prose ol, .page-content ul, .page-content ol, .blog-content ul, .blog-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.25em;
}
.prose li, .page-content li, .blog-content li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}
.page-content ul, .blog-content ul { list-style: disc; }
.page-content ol, .blog-content ol { list-style: decimal; }
.prose a, .page-content a, .blog-content a {
    color: #263f92;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.prose a:hover, .page-content a:hover, .blog-content a:hover {
    color: #ea6c0b;
}
.prose img, .page-content img, .blog-content img {
    border-radius: 1rem;
    margin: 2em 0;
    height: auto !important;
    max-width: 100% !important;
}
.prose img[style*="float"], .page-content img[style*="float"], .blog-content img[style*="float"] {
    margin: 0.5em 0;
    shape-margin: 1em;
    max-width: 55% !important;
}
.prose img[style*="float:right"], .prose img[style*="float: right"],
.page-content img[style*="float:right"], .page-content img[style*="float: right"],
.blog-content img[style*="float:right"], .blog-content img[style*="float: right"] {
    margin-left: 1.5em;
}
.prose img[style*="float:left"], .prose img[style*="float: left"],
.page-content img[style*="float:left"], .page-content img[style*="float: left"],
.blog-content img[style*="float:left"], .blog-content img[style*="float: left"] {
    margin-right: 1.5em;
}
.prose::after, .page-content::after, .blog-content::after {
    content: "";
    display: table;
    clear: both;
}
.prose blockquote, .page-content blockquote, .blog-content blockquote {
    border-left: 4px solid #ff9a3c;
    padding: 1em 1.5em;
    margin: 1.5em 0;
    background: #eef1fb;
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
    color: #1e3275;
}
.page-content iframe, .blog-content iframe {
    width: 100% !important;
    max-width: 100%;
    border-radius: 12px;
    margin: 1rem 0;
}
.page-content strong, .blog-content strong {
    font-weight: 600;
    color: #1f2937;
}
.page-content table, .blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    border-radius: 8px;
    overflow: hidden;
}
.page-content th, .blog-content th {
    background: #263f92;
    color: #fff;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
}
.page-content td, .blog-content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}
.page-content tr:hover td, .blog-content tr:hover td {
    background: #f9fafb;
}
.page-content h1, .blog-content h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #263f92;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* ====== Scrollbar Hide Utility ====== */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* ====== Header ====== */
header.scrolled {
    background: rgba(255,255,255,0.8) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
}

/* Nav link hover underline animation */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #f48725;
    border-radius: 999px;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 80%;
}

/* ====== Responsive Fixes ====== */
@media (max-width: 640px) {
    .heroSwiper .swiper-button-prev,
    .heroSwiper .swiper-button-next {
        display: none !important;
    }
}

/* ====== Newsletter Input ====== */
#emailNewsletter::placeholder {
    color: rgba(255,255,255,0.5);
}

/* ====== FB Comments Responsive ====== */
.fb-comments,
.fb-comments iframe,
.fb-comments span {
    width: 100% !important;
}

/* ====== Pagination Styles ====== */
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    list-style: none;
    padding: 0;
}
.pagination li a,
.pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}
.pagination li a:hover {
    background: #eef1fb;
    color: #263f92;
    border-color: #263f92;
}
.pagination li.active span,
.pagination li.active a {
    background: #263f92;
    color: #fff;
    border-color: #263f92;
}

/* ====== GLightbox Override ====== */
.goverlay {
    background: rgba(0,0,0,0.85) !important;
}

/* ====== Partners Scroll ====== */
.partners-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scroll 30s linear infinite;
}
.partners-track:hover {
    animation-play-state: paused;
}

/* ====== WhatsApp Pulse ====== */
.whatsapp-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: #22c55e;
    animation: pulse-ring 2s ease-out infinite;
    z-index: -1;
}

/* ====== Line Clamp ====== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
