:root {
    --primary-blue: #001833;
    --accent-blue: #0066cc;
    --accent-glow: #00a2ff;
    --text-light: #ffffff;
    --text-muted: #b3c6d8;
    --glass-bg: rgba(0, 24, 51, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-blue);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 80px;
}

/* Typography Rules */
.name {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.2rem;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 2;
}

.title {
    font-weight: 300;
    font-size: 1.1rem;
    color: var(--accent-glow);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.slogan-container {
    background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.2), transparent);
    padding: 10px 0;
    border-top: 1px solid rgba(0, 162, 255, 0.3);
    border-bottom: 1px solid rgba(0, 162, 255, 0.3);
    margin-top: 5px;
}

.slogan {
    font-weight: 300;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 90%;
    margin: 0 auto;
    line-height: 1.5;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem 4rem;
}

.image-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: slowZoom 20s infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 24, 51, 0.3) 0%, rgba(0, 24, 51, 0.95) 75%, var(--primary-blue) 100%);
}

.hero-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.05;
    width: 80%;
    max-width: 400px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    animation: fadeIn 1s ease-out;
}

/* Profile Pic "Popping Out" Effect */
.profile-pic-container {
    position: relative;
    width: 160px;
    height: 240px; /* Taller container to allow larger zoom */
    margin: 0 auto 0.5rem;
}

.profile-circle-bg {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid #fbbc04; /* Golden border from Ciudad Maderas */
    background: #001833; /* Solid background to hide what's behind the person inside the circle */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.profile-pic {
    position: absolute;
    bottom: 4px; /* Sit right inside the bottom border */
    left: 50%;
    transform: translateX(-50%);
    width: 152px; /* Fits exactly inside the 160px circle with 4px borders */
    height: 230px; /* Fixed height forces object-fit to zoom in the image */
    object-fit: cover;
    object-position: bottom center; /* Aligns the base of the image to the bottom of the circle */
    z-index: 2;
    /* Rounds the bottom to perfectly match the inner circle, leaving the top free */
    border-bottom-left-radius: 76px;
    border-bottom-right-radius: 76px;
}

.header-logo {
    width: 220px;
    margin: 1rem 0;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 1)) drop-shadow(0 0 5px rgba(255, 255, 255, 1));
}

/* Quick Actions */
.quick-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.5rem 1rem 1.5rem;
    position: relative;
    z-index: 3;
    background: var(--primary-blue);
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 400;
    transition: transform 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-5px);
}

.action-btn .icon-wrapper {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    color: white;
}

.action-btn.phone-btn .icon-wrapper {
    background: #ff4d4d;
    box-shadow: 0 5px 15px rgba(255, 77, 77, 0.4);
}
.action-btn.phone-btn:hover .icon-wrapper {
    box-shadow: 0 5px 25px rgba(255, 77, 77, 0.6);
}

.action-btn.whatsapp-btn .icon-wrapper {
    background: #25D366;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}
.action-btn.whatsapp-btn:hover .icon-wrapper {
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.6);
}

.action-btn.email-btn .icon-wrapper {
    background: #55acee;
    box-shadow: 0 5px 15px rgba(85, 172, 238, 0.4);
}
.action-btn.email-btn:hover .icon-wrapper {
    box-shadow: 0 5px 25px rgba(85, 172, 238, 0.6);
}

.action-btn.location-btn .icon-wrapper {
    background: #0077b5;
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4);
}
.action-btn.location-btn:hover .icon-wrapper {
    box-shadow: 0 5px 25px rgba(0, 119, 181, 0.6);
}

/* About & Video Section */
.about-section {
    padding: 2rem 1.5rem;
    text-align: center;
}

.video-wrapper {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

#main-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

.glowing-border {
    position: relative;
}

.glowing-border::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-glow), var(--accent-blue));
    z-index: -1;
    border-radius: 16px;
    opacity: 0.5;
    animation: pulseGlow 3s infinite alternate;
}

.about-description h3 {
    color: var(--accent-glow);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.about-description p {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Services Accordion */
.services-section {
    padding: 2rem 1rem;
}

.section-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.accordion-hint {
    text-align: center;
    font-size: 0.8rem;
    color: var(--accent-glow);
    margin-bottom: 2rem;
    animation: bounce 2s infinite;
}

.text-accent {
    color: var(--accent-glow);
}

.accordion-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background: var(--glass-bg);
    border-radius: 15px;
    border: 1px solid rgba(0, 162, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 162, 255, 0.15);
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover, .accordion-header[aria-expanded="true"] {
    box-shadow: 0 0 25px rgba(0, 162, 255, 0.4);
}

.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: rgba(0, 162, 255, 0.1);
}

.acc-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.acc-icon {
    transition: transform 0.3s ease;
}

.accordion-header[aria-expanded="true"] .acc-icon {
    transform: rotate(180deg);
    color: var(--accent-glow);
}

.accordion-header[aria-expanded="true"] {
    background: rgba(0, 102, 204, 0.2);
    border-bottom: 1px solid rgba(0, 162, 255, 0.2);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.accordion-content {
    padding: 1.5rem;
}

.service-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-content p {
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.service-list {
    list-style: none;
}

.service-list li {
    font-weight: 300;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.service-list li i {
    color: var(--accent-glow);
    margin-top: 3px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 1rem 4rem; /* Reduced bottom padding */
    background: linear-gradient(to top, #000a14, var(--primary-blue));
    position: relative;
}

.footer-logo {
    max-width: 180px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 1)) drop-shadow(0 0 5px rgba(255, 255, 255, 1));
}

.footer-address {
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem; /* Reduced from 2rem */
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 162, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 162, 255, 0.3);
}

.social-icon:hover {
    background: var(--accent-blue);
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Bottom Nav Fijo */
.padding-bottom { height: 90px; }
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    background: rgba(0, 24, 51, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 12px 10px; padding-bottom: calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255,255,255,0.05);
    z-index: 1000;
}
.nav-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-decoration: none; color: var(--text-muted); font-size: 1.3rem;
    background: none; border: none; cursor: pointer;
    transition: color 0.3s;
    text-align: center;
}
.nav-item span { font-size: 0.65rem; margin-top: 6px; font-weight: 400; letter-spacing: 0.5px;}
.nav-item:hover { color: var(--text-light); }
.nav-item.active { color: var(--accent-glow); }
.nav-item.whatsapp-nav { color: #25D366; }


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

@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

@keyframes pulseGlow {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}
