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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    height: 100vh;
}

/* FONDO ANIMADO OPTIMIZADO - Solo elementos esenciales */
@keyframes codeFlow {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

@keyframes circuitPulse {
    0%, 100% { 
        opacity: 0.3;
    }
    50% { 
        opacity: 0.7;
    }
}

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    z-index: -1;
    overflow: hidden;
}

.code-line {
    position: absolute;
    color: #0066FF;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    animation: codeFlow 10s infinite linear;
    white-space: nowrap;
    font-weight: bold;
    will-change: transform, opacity;
}

.circuit-line {
    position: absolute;
    height: 2px;
    background: #0066FF;
    opacity: 0.3;
}

.circuit-node {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #00d4ff;
    border-radius: 50%;
    opacity: 0.4;
}

/* BANNER SUPERIOR OPTIMIZADO */
@keyframes bannerSlide {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    10%, 90% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 45px;
    background: linear-gradient(90deg, #0066FF 0%, #00d4ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    overflow: hidden;
}

.banner-content {
    position: absolute;
    width: 100%;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    opacity: 0;
    white-space: nowrap;
}

.banner-content.active {
    animation: bannerSlide 4s ease-in-out;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 45px;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 2000;
    box-shadow: 0 5px 20px rgba(0, 102, 255, 0.3);
    gap: 20px;
}

.navbar-desktop {
    display: flex;
}

.navbar-mobile {
    display: none;
}

@media (max-width: 768px) {
    .navbar-desktop {
        display: none !important;
    }

    .navbar-mobile {
        display: flex !important;
        justify-content: space-between;
    }
}

.nav-logo {
    width: 50px;
    height: 50px;
    cursor: pointer;
    flex-shrink: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.3s;
}

.nav-logo:hover {
    transform: translateX(-50%) scale(1.1);
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    align-items: center;
}

.nav-links.left {
    flex: 1;
    justify-content: flex-start;
}

.nav-links.right {
    flex: 0;
    justify-content: flex-end;
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-links li {
    cursor: pointer;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-links li:hover {
    color: #0066FF;
    transform: translateY(-2px);
}

.nav-links li.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #0066FF;
}

.nav-social-container {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-social-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 102, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid rgba(0, 102, 255, 0.5);
    text-decoration: none;
}

.nav-social-icon:hover {
    background: #0066FF;
    border-color: #0066FF;
    transform: scale(1.15);
}

.nav-social-icon svg {
    width: 18px;
    height: 18px;
    fill: white;
}

/* MENÚ HAMBURGUESA */
.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    position: relative;
    z-index: 3000;
}

.circuit-burger {
    position: relative;
    width: 100%;
    height: 100%;
}

.circuit-line-menu {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #0066FF;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px #0066FF;
}

.circuit-line-menu:nth-child(1) {
    top: 8px;
}

.circuit-line-menu:nth-child(2) {
    top: 18px;
}

.circuit-line-menu:nth-child(3) {
    top: 28px;
}

.menu-toggle.active .circuit-line-menu:nth-child(1) {
    transform: rotate(45deg);
    top: 18px;
}

.menu-toggle.active .circuit-line-menu:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .circuit-line-menu:nth-child(3) {
    transform: rotate(-45deg);
    top: 18px;
}

.mobile-menu {
    position: fixed;
    top: 125px;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(15px);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1999;
    box-shadow: 0 5px 20px rgba(0, 102, 255, 0.3);
    max-height: calc(100vh - 125px);
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    padding: 20px 25px;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 102, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.mobile-menu li:hover,
.mobile-menu li.active {
    background: rgba(0, 102, 255, 0.2);
    border-left: 4px solid #0066FF;
    padding-left: 30px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links.left,
    .nav-links.right {
        display: none;
    }
}

/* DROPDOWN DE GARANTÍAS */
.nav-links .dropdown {
    position: relative;
    cursor: pointer;
}

.dropdown-toggle {
    display: inline-block;
    padding: 0;
    transition: color 0.3s;
}

.dropdown:hover .dropdown-toggle {
    color: #0066FF;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 15px;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.4);
    border: 2px solid rgba(0, 102, 255, 0.3);
    z-index: 3000;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 10px;
}

.dropdown-menu li {
    padding: 12px 25px;
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.dropdown-menu li:hover {
    background: rgba(0, 102, 255, 0.2);
    border-left-color: #0066FF;
    padding-left: 30px;
    color: #00d4ff;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(0, 102, 255, 0.3);
}

/* CONTENEDOR LIBRO */
.book-container {
    position: fixed;
    top: 125px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 2000px;
}

.book {
    position: relative;
    width: 90%;
    max-width: 1400px;
    height: 85vh;
    transform-style: preserve-3d;
}

.page {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform-origin: left center;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    overflow: hidden;
    border: 2px solid rgba(0, 102, 255, 0.2);
    opacity: 0;
    visibility: hidden;
}

.page.visible {
    opacity: 1;
    visibility: visible;
}

.page.active {
    z-index: 100;
}

.page.behind {
    z-index: 99;
}

@keyframes pageFlipForward {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(-180deg);
    }
}

@keyframes pageFlipBackward {
    0% {
        transform: rotateY(-180deg);
    }
    100% {
        transform: rotateY(0deg);
    }
}

.page.turning-forward {
    animation: pageFlipForward 1.2s ease-in-out;
}

.page.turning-backward {
    animation: pageFlipBackward 1.2s ease-in-out;
}

.page-content {
    padding: 50px;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.page-content::-webkit-scrollbar {
    width: 8px;
}

.page-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.page-content::-webkit-scrollbar-thumb {
    background: rgba(0, 102, 255, 0.5);
    border-radius: 10px;
}

.page-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 102, 255, 0.8);
}

/* NAVEGACIÓN */
.nav-arrows {
    position: fixed;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 1500;
    padding: 0 20px;
}

.nav-arrow {
    width: 60px;
    height: 60px;
    background: rgba(0, 102, 255, 0.8);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.5);
}

.nav-arrow:hover:not(:disabled) {
    background: #0066FF;
    transform: scale(1.1);
}

.nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* INDICADORES DE PÁGINA */
.page-indicators {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 1500;
}

.page-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.page-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.page-dot.active {
    background: #0066FF;
    width: 35px;
    border-radius: 6px;
}

/* PÁGINA HERO - SECCIÓN SUPERIOR */
.hero-section {
    text-align: center;
    padding: 40px 0;
}

.hero-title {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #0066FF, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(0, 102, 255, 0.1);
    border: 2px solid rgba(0, 102, 255, 0.3);
    border-radius: 15px;
    padding: 25px;
    min-width: 150px;
    transition: all 0.3s;
}

.badge:hover {
    background: rgba(0, 102, 255, 0.2);
    border-color: #0066FF;
    transform: translateY(-5px);
}

.badge-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.badge-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.cta-button {
    background: linear-gradient(135deg, #0066FF 0%, #00d4ff 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 102, 255, 0.6);
}

/* PORTFOLIO GRID - SERVICIOS DESTACADOS */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.portfolio-item {
    background: rgba(0, 102, 255, 0.1);
    border: 2px solid rgba(0, 102, 255, 0.3);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.portfolio-item:hover {
    background: rgba(0, 102, 255, 0.2);
    border-color: #0066FF;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.3);
}

.portfolio-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.portfolio-item h3 {
    color: #00d4ff;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.portfolio-item p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* PÁGINAS DE CONTENIDO */
.content-page h1 {
    font-size: 2.5rem;
    color: #0066FF;
    text-align: center;
    margin-bottom: 50px;
}

.about-grid,
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.about-card,
.why-card {
    background: rgba(0, 102, 255, 0.1);
    border: 2px solid rgba(0, 102, 255, 0.3);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s;
}

.about-card:hover,
.why-card:hover {
    background: rgba(0, 102, 255, 0.2);
    border-color: #0066FF;
    transform: translateY(-5px);
}

.about-icon,
.why-number {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.why-number {
    background: linear-gradient(135deg, #0066FF, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.about-card h3,
.why-card h3 {
    color: #00d4ff;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.about-card p,
.why-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* PÁGINA DE SERVICIOS - GRID OPTIMIZADA */
.services-page {
    padding: 40px;
}

.services-title {
    font-size: 2.5rem;
    color: #0066FF;
    text-align: center;
    margin-bottom: 15px;
}

.services-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    max-width: 1300px;
    margin: 0 auto;
}

.service-card-grid {
    background: rgba(0, 102, 255, 0.1);
    border: 2px solid rgba(0, 102, 255, 0.3);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-card-grid:hover {
    background: rgba(0, 102, 255, 0.2);
    border-color: #0066FF;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.3);
}

.service-icon {
    font-size: 2.5rem;
    text-align: center;
}

.service-title {
    font-size: 1.3rem;
    color: #00d4ff;
    text-align: center;
    font-weight: 600;
    margin: 0;
}

.service-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: center;
}

.service-button {
    background: linear-gradient(135deg, #0066FF 0%, #00d4ff 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: auto;
}

.service-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.5);
}

/* PÁGINAS DE GARANTÍAS */
.garantias-page {
    padding: 40px;
}

.garantia-hero {
    text-align: center;
    margin-bottom: 50px;
}

.garantia-hero h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #0066FF, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.garantia-hero h2 {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.garantia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.garantia-item {
    background: rgba(0, 102, 255, 0.1);
    border: 2px solid rgba(0, 102, 255, 0.3);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s;
}

.garantia-item:hover {
    background: rgba(0, 102, 255, 0.2);
    border-color: #0066FF;
    transform: translateY(-5px);
}

.garantia-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.garantia-item h3 {
    color: #00d4ff;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.garantia-item p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* PÁGINA DE CONTACTO */
.contact-page h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    background: rgba(0, 102, 255, 0.1);
    border: 2px solid rgba(0, 102, 255, 0.3);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.3s;
}

.contact-item:hover {
    background: rgba(0, 102, 255, 0.2);
    border-color: #0066FF;
    transform: translateX(5px);
}

.contact-item-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.contact-item-content h3 {
    color: #00d4ff;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.contact-item-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.contact-item-content a {
    color: #00d4ff;
    text-decoration: none;
}

.contact-item-content a:hover {
    text-decoration: underline;
}

.contact-map {
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(0, 102, 255, 0.3);
}

.contact-map iframe {
    width: 100%;
    min-height: 500px;
    border: none;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.social-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.social-button svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.social-button.facebook {
    background: #1877F2;
    color: white;
}

.social-button.facebook:hover {
    background: #0d66d9;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}

.social-button.instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
}

.social-button.instagram:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(188, 24, 136, 0.4);
}

.social-button.whatsapp {
    background: #25D366;
    color: white;
}

.social-button.whatsapp:hover {
    background: #1faf52;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* BOTÓN FLOTANTE DE WHATSAPP */
@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    }
    50% {
        box-shadow: 0 8px 35px rgba(37, 211, 102, 0.8);
    }
}

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25D366 0%, #1faf52 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    z-index: 4000;
    transition: all 0.3s ease;
    animation: whatsappPulse 2s infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.15);
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    fill: white;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-section {
        padding: 30px 0;
    }

    .about-grid,
    .why-grid,
    .garantia-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .badge {
        min-width: 120px;
        padding: 20px;
    }

    .badge-icon {
        font-size: 2.5rem;
    }

    .badge-text {
        font-size: 0.8rem;
    }

    .page-content {
        padding: 30px;
    }

    .content-page h1,
    .garantias-page h1 {
        font-size: 2rem;
    }

    .garantia-hero h2 {
        font-size: 1.2rem;
    }

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

    .contact-map iframe {
        min-height: 400px;
    }

    .social-button {
        padding: 13px 28px;
        font-size: 1.05rem;
    }

    .social-button svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 768px) {
    body {
        overflow-y: auto !important;
        height: auto !important;
    }

    .book-container {
        height: auto;
        min-height: 100vh;
        padding-top: 125px;
        perspective: none;
        display: block;
        position: relative;
        overflow: visible;
    }

    .book {
        position: relative;
        width: 100%;
        max-width: 100%;
        height: auto;
        transform-style: flat;
    }

    .page {
        position: relative !important;
        width: 100%;
        height: auto;
        min-height: auto;
        border-radius: 10px;
        margin-bottom: 20px;
        backface-visibility: visible;
        transform-style: flat;
        transform-origin: center;
        overflow: visible;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        z-index: auto !important;
    }

    .page.turning-forward,
    .page.turning-backward {
        animation: none !important;
    }

    .page.active,
    .page.visible,
    .page.behind {
        position: relative !important;
        transform: none !important;
    }

    .nav-arrows {
        display: none !important;
    }

    .page-indicators {
        display: none !important;
    }

    .page-content {
        overflow-y: visible;
        overflow-x: hidden;
        height: auto;
        min-height: auto;
        padding: 25px;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-section {
        padding: 20px 0;
    }

    .hero-badges {
        gap: 15px;
    }

    .badge {
        min-width: 100px;
        padding: 15px;
    }

    .badge-icon {
        font-size: 2rem;
    }

    .badge-text {
        font-size: 0.75rem;
    }

    .cta-button {
        padding: 15px 40px;
        font-size: 1.1rem;
    }

    .portfolio-item {
        padding: 25px;
    }

    .portfolio-icon {
        font-size: 2.5rem;
    }

    .portfolio-item h3 {
        font-size: 1.2rem;
    }

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

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card-grid {
        padding: 20px;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }

    .dropdown-menu {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.7rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-section {
        padding: 15px 0;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .portfolio-item {
        padding: 20px;
    }

    .portfolio-icon {
        font-size: 2.2rem;
    }

    .portfolio-item h3 {
        font-size: 1.1rem;
    }

    .portfolio-item p {
        font-size: 0.9rem;
    }

    .content-page h1,
    .garantias-page h1 {
        font-size: 1.6rem;
    }

    .services-title {
        font-size: 1.6rem;
    }

    .page-content {
        padding: 20px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-icon {
        width: 25px;
        height: 25px;
    }
}