/* ==========================================================================
   CSS SYSTEM DESIGN - AUTOSERVICIO LOS PICOS
   ========================================================================== */

:root {
    --bg-dark: #070a13;
    --bg-darker: #04060c;
    --bg-card: rgba(255, 255, 255, 0.02);
    --bg-card-hover: rgba(255, 255, 255, 0.05);
    
    --primary-red: #d9383a;
    --primary-red-hover: #fa4b4d;
    --primary-red-glow: rgba(217, 56, 58, 0.4);
    
    --accent-gold: #f4d35e;
    --accent-gold-hover: #ffd02c;
    --accent-gold-glow: rgba(244, 211, 94, 0.3);
    
    --text-white: #f8f9fa;
    --text-muted: #9fa9bc;
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(217, 56, 58, 0.25);
    
    --wa-green: #25d366;
    --wa-green-hover: #20ba5a;
    --wa-green-glow: rgba(37, 211, 102, 0.3);
    
    --font-headings: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
}

/* Base resets & scroll */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Iconos Material Symbols (sustituyen a los emojis) */
.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(217, 56, 58, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(244, 211, 94, 0.02) 0%, transparent 40%);
    background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Icon Global Style */
.icon-svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
}
.icon-svg-wa {
    width: 22px;
    height: 22px;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--text-white);
    box-shadow: 0 4px 15px var(--primary-red-glow);
}
.btn-primary:hover {
    background-color: var(--primary-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 56, 58, 0.6);
}

.btn-primary-large {
    background-color: var(--primary-red);
    color: var(--text-white);
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 15px var(--primary-red-glow);
}
.btn-primary-large:hover {
    background-color: var(--primary-red-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(217, 56, 58, 0.6);
}

.btn-secondary-large {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}
.btn-secondary-large:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-phone {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border: 1px solid var(--accent-gold);
    padding: 10px 28px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}
.btn-phone:hover {
    background-color: var(--accent-gold);
    color: var(--bg-darker);
    border-color: var(--accent-gold);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

.btn-estado-header {
    background: transparent;
    color: var(--accent-gold);
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-estado-header:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--accent-gold);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.btn-phone-icon-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}
.btn-phone-icon-mobile:hover {
    background-color: var(--accent-gold);
    color: var(--bg-darker);
    transform: scale(1.05);
}

.btn-outline-sm {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    font-size: 0.85rem;
    border-radius: var(--border-radius-sm);
}
.btn-outline-sm:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    box-shadow: 0 4px 12px var(--primary-red-glow);
}

.btn-login-header {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    font-size: 0.88rem;
    backdrop-filter: blur(8px);
}
.btn-login-header:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--text-white);
    box-shadow: 0 4px 15px var(--primary-red-glow);
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .hide-desktop {
        display: none !important;
    }
}

.btn-whatsapp-large {
    background-color: var(--wa-green);
    color: var(--text-white);
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 15px var(--wa-green-glow);
    animation: pulse-wa 3s infinite;
}
.btn-whatsapp-large:hover {
    background-color: var(--wa-green-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp-submit {
    background-color: var(--wa-green);
    color: var(--text-white);
    width: 100%;
    padding: 15px;
    font-size: 1.05rem;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 15px var(--wa-green-glow);
}
.btn-whatsapp-submit:hover {
    background-color: var(--wa-green-hover);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(7, 10, 19, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}
.logo-area:hover .logo-img {
    transform: rotate(5deg) scale(1.05);
    filter: drop-shadow(0 0 8px var(--primary-red-glow));
}

.logo-text {
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.est-year {
    font-size: 0.7rem;
    color: var(--accent-gold);
    letter-spacing: 0.3em;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-headings);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 8px 0;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: var(--transition-fast);
}
.nav-link:hover {
    color: var(--text-white);
}
.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}
.mobile-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-white);
    transition: var(--transition-fast);
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--bg-darker);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transition: var(--transition-smooth);
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0,0,0,0.7);
    padding: 40px 20px;
}
.nav-menu.active {
    right: 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 160px 0 100px;
    min-height: 95vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--bg-darker);
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--bg-dark) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.15;
}

.hero-glow-1 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(217, 56, 58, 0.08) 0%, transparent 70%);
    top: -10%;
    right: -5%;
    z-index: 1;
}

.hero-glow-2 {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(244, 211, 94, 0.04) 0%, transparent 70%);
    bottom: -20%;
    left: -10%;
    z-index: 1;
}

.hero-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: rgba(217, 56, 58, 0.08);
    border: 1px solid rgba(217, 56, 58, 0.2);
    border-radius: 50px;
    margin-bottom: 24px;
}
.badge-star {
    font-size: 1rem;
    color: var(--primary-red-hover);
}
.badge-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-red-hover);
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-white);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 640px;
}

.hero-actions-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-number {
    font-family: var(--font-headings);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-red-hover);
    line-height: 1;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.divider-stat {
    width: 1px;
    height: 40px;
    background-color: var(--border-color);
}

.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.logo-badge-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-badge-container::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(217, 56, 58, 0.12) 0%, transparent 60%);
    z-index: 1;
}

.hero-logo-floating {
    width: 90%;
    height: auto;
    position: relative;
    z-index: 2;
    animation: float-logo 6s ease-in-out infinite;
    filter: drop-shadow(0 15px 35px rgba(0,0,0,0.6));
}

/* Services Section */
.services-section {
    padding: 100px 0;
    position: relative;
    background-color: var(--bg-dark);
}

.section-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    position: relative;
}

.section-subtitle-bar {
    width: 80px;
    height: 4px;
    background-color: var(--primary-red);
    margin-bottom: 24px;
    border-radius: 2px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
}

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

/* Services Carousel */
.services-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.services-carousel-wrapper {
    overflow: hidden;
    width: 100%;
    border-radius: var(--border-radius-lg);
    padding: 10px 0;
}

.services-carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    cursor: grab;
    user-select: none;
}

.services-carousel-track.grabbing {
    cursor: grabbing;
}

.service-slide {
    flex: 0 0 calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
    box-sizing: border-box;
}

.service-slide .service-card {
    height: 100%;
}

@media (max-width: 1024px) {
    .service-slide {
        flex: 0 0 calc(50% - 12px);
        max-width: calc(50% - 12px);
    }
}

@media (max-width: 640px) {
    .service-slide {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .services-carousel-container {
        gap: 6px;
    }
    .carousel-nav-btn {
        width: 38px;
        height: 38px;
    }
}

.carousel-nav-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    flex-shrink: 0;
}

.carousel-nav-btn:hover:not(:disabled) {
    background: var(--primary-red);
    border-color: var(--primary-red);
    box-shadow: 0 6px 20px rgba(217, 56, 58, 0.4);
    transform: scale(1.08);
}

.carousel-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.dot-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0;
}

.dot-btn.active {
    width: 28px;
    border-radius: 6px;
    background: var(--primary-red);
    box-shadow: 0 0 10px rgba(217, 56, 58, 0.5);
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}
.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 30px rgba(217, 56, 58, 0.1);
    background-color: var(--bg-card-hover);
}

.service-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/13;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.service-card:hover .service-img {
    transform: scale(1.05);
}

.image-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(7, 10, 19, 0.9) 0%, transparent 100%);
    z-index: 1;
}

.service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(7, 10, 19, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    color: var(--accent-gold);
    padding: 6px 14px;
    border-radius: 50px;
    font-family: var(--font-headings);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.service-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-name {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-white);
}

.service-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.service-bullets {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.service-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-white);
}

.bullet-icon {
    width: 16px;
    height: 16px;
    fill: var(--primary-red);
    flex-shrink: 0;
    margin-top: 4px;
}

.service-footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    gap: 15px;
}

.service-slogan {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    max-width: 50%;
    line-height: 1.3;
}

/* Product Section (Pre-ITV) */
.product-section {
    padding: 100px 0;
    position: relative;
    background-color: var(--bg-darker);
    overflow: hidden;
}

.product-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(217, 56, 58, 0.06) 0%, transparent 65%);
    top: 50%;
    left: 20%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.product-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.product-visual {
    display: flex;
    justify-content: center;
}

.product-image-container {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.product-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--primary-red);
    color: var(--text-white);
    padding: 8px 18px;
    border-radius: 50px;
    font-family: var(--font-headings);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px var(--primary-red-glow);
    z-index: 3;
    white-space: nowrap;
}

.product-img {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.5));
    transition: var(--transition-smooth);
}
.product-image-container:hover .product-img {
    transform: scale(1.03) translateY(-8px);
}

.product-shadow {
    position: absolute;
    width: 70%;
    height: 20px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.6) 0%, transparent 70%);
    bottom: -10px;
    left: 15%;
    z-index: 1;
}

.logo-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-headings);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.mini-logo {
    height: 20px;
    width: auto;
}

.product-title {
    font-size: 2.3rem;
    margin-bottom: 20px;
}

.product-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.p-feature-item {
    display: flex;
    gap: 16px;
}

.p-feature-icon {
    width: 38px;
    height: 38px;
    background-color: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent-gold);
    flex-shrink: 0;
}

.p-feature-item h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: var(--text-white);
}

.p-feature-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Benefits Section */
.benefits-section {
    padding: 60px 0;
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

.benefit-box {
    text-align: center;
    padding: 20px;
}

.benefit-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
    display: inline-block;
    color: var(--primary-red-hover);
    filter: drop-shadow(0 4px 8px var(--primary-red-glow));
}

.benefit-box h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.benefit-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Contact & Appointment Section */
.contact-section {
    padding: 100px 0;
    position: relative;
    background-color: var(--bg-darker);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-panel-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.contact-panel-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.c-detail-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.c-detail-icon {
    width: 44px;
    height: 44px;
    background-color: rgba(217, 56, 58, 0.05);
    border: 1px solid rgba(217, 56, 58, 0.15);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-red-hover);
}
.c-detail-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.c-detail-item h5 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-white);
}

.c-detail-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.contact-link:hover {
    color: var(--primary-red-hover);
    text-decoration: underline;
}

.map-container {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* Appointment Form Panel & Tabs */
.contact-form-panel {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.form-tabs {
    display: flex;
    gap: 8px;
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    padding: 6px;
    border-radius: var(--border-radius-md);
    margin-bottom: 28px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-headings);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 14px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn:hover {
    color: var(--text-white);
    background-color: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    background-color: var(--primary-red);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(217, 56, 58, 0.4);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInTab 0.3s ease-in-out;
}

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

.service-tooltip-box {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 1000;
    background: #1e293b;
    border: 1px solid var(--primary-red);
    color: var(--text-white);
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    line-height: 1.45;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    animation: fadeInTooltip 0.2s ease-out;
}

.service-tooltip-box::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 24px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent var(--primary-red) transparent;
}

@keyframes fadeInTooltip {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-title {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.form-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.appointment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-headings);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-white);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(217, 56, 58, 0.15);
    background-color: rgba(255, 255, 255, 0.05);
}

.form-group select option {
    background-color: var(--bg-dark);
    color: var(--text-white);
}

.form-feedback {
    display: none;
    padding: 12px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}
.form-feedback.success {
    background-color: rgba(37, 211, 102, 0.1);
    color: var(--wa-green);
    border: 1px solid rgba(37, 211, 102, 0.2);
}

/* Footer styling */
.main-footer {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 70px 0 0;
    position: relative;
    z-index: 2;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px 50px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 50px;
}

.footer-brand-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.logo-footer-img {
    height: 38px;
    width: auto;
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links-group h4,
.footer-contact-summary h4 {
    font-size: 1.05rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-white);
}

.footer-links-group ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-group ul a {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.footer-links-group ul a:hover {
    color: var(--primary-red-hover);
    padding-left: 5px;
}

.footer-contact-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-summary p {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact-summary p .material-symbols-outlined {
    font-size: 1.1rem;
    color: var(--primary-red-hover);
    flex-shrink: 0;
}

.footer-contact-summary a:hover {
    color: var(--primary-red-hover);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    background-color: rgba(0,0,0,0.2);
}

.footer-bottom-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Animations */
@keyframes float-logo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes pulse-wa {
    0%, 100% { box-shadow: 0 4px 15px var(--wa-green-glow); }
    50% { box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6); }
}

/* Scroll Fade Animations */
.animate-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Queries */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-content {
        align-items: center;
    }
    .hero-actions-group {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-visual {
        order: -1;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    .product-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .p-feature-item {
        text-align: left;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand-info {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    
    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--bg-darker);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: var(--transition-smooth);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-brand-info {
        grid-column: span 1;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .hero-actions-group .btn {
        width: 100%;
    }
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    .divider-stat {
        display: none;
    }
    .contact-form-panel {
        padding: 24px;
    }
}
