/* Component Styles */

/* Header Component */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: var(--spacing-xs) 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: var(--z-header);
    box-shadow: var(--shadow-header);
    transition: background var(--transition-fast);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

.logo {
    font-size: var(--font-size-base);
    font-weight: bold;
    color: var(--accent-color);
    margin: 0;
    padding: 0;
    flex: 1;
    text-align: left;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.phone-header {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-lg);
    font-weight: bold;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.phone-header:hover {
    transform: scale(1.05);
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: var(--spacing-xs);
    margin-left: auto;
    justify-self: flex-end;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 250px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: var(--shadow-header);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: var(--z-dropdown);
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
}

.mobile-menu.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-menu {
    list-style: none;
    padding: var(--spacing-md) 0;
}

.mobile-nav-menu li {
    margin: 0;
}

.mobile-nav-menu a {
    display: block;
    color: var(--white);
    text-decoration: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
}

.mobile-nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

.desktop-nav {
    display: flex;
    margin-left: auto;
}

/* Hero Component */
.hero {
    background: url('../image/laguna.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: var(--header-height);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    padding: 0 var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.hero p {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-lg);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.hero-description {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(15px);
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.feature-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: var(--spacing-xs);
}

.feature-item span {
    font-weight: 500;
    font-size: var(--font-size-base);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-xl);
}

/* CTA Button */
.cta-button {
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-lg);
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all var(--transition-fast);
    text-align: center;
    min-width: 200px;
}

.cta-button.primary {
    background: var(--accent-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-gold);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold-hover);
}

.cta-button.secondary {
    background: var(--whatsapp-green);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.cta-button.secondary:hover {
    background: var(--whatsapp-green-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Card Components */
.card {
    background: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-content {
    padding: var(--spacing-lg);
}

/* Huaringas Cards */
.huaringas-section {
    background: linear-gradient(135deg, var(--background-green), var(--background-green-light)),
                url('../image/laguna2.webp');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    position: relative;
}

.huaringas-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(232, 245, 232, 0.9), rgba(241, 248, 233, 0.9));
}

.huaringas-section .container {
    position: relative;
    z-index: 2;
}

.huaringas-card {
    background: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-fast);
    overflow: hidden;
}

.huaringas-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.huaringas-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.huaringas-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-fast);
}

.huaringas-card:hover .huaringas-image img {
    transform: scale(1.1);
}

.huaringas-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(45, 107, 50, 0.1), rgba(30, 70, 32, 0.1));
}

.huaringas-content {
    padding: var(--spacing-lg);
}

.huaringas-content h3 {
    font-size: var(--font-size-lg);
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.huaringas-content p {
    color: #666;
    line-height: 1.6;
}

/* Gallery Components */
.gallery-section {
    background: var(--background-light);
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border: none;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-fast);
    border: none;
    outline: none;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    padding: var(--spacing-lg) var(--spacing-sm) var(--spacing-sm);
    transform: translateY(100%);
    transition: transform var(--transition-fast);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xs);
    color: var(--accent-color);
}

/* Maestros Components */
.maestro-card {
    background: var(--white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    display: flex;
    align-items: stretch;
    min-height: 200px;
}

.maestro-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.maestro-image {
    width: 200px;
    min-width: 200px;
    height: auto;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 4rem;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    /* Fallback para mejor visualización */
    min-height: 200px;
    border-radius: 8px;
}

/* Specific maestro images - Now using external URLs via inline styles */
.maestro-roman,
.maestro-evangelista, 
.maestro-cipriano,
.maestro-florentino { 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.maestro-luis { 
    background-image: url('../image/curandero5.webp'); 
    background-size: cover;
    background-position: center;
}

.maestro-info {
    padding: var(--spacing-md);
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.maestro-name {
    font-size: var(--font-size-xl);
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    line-height: 1.2;
}

.maestro-specialty {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: var(--spacing-xs);
    font-size: 0.95rem;
}

.maestro-experience {
    background: var(--background-green);
    padding: var(--spacing-xs);
    border-radius: var(--border-radius-lg);
    font-size: var(--font-size-sm);
    color: var(--secondary-color);
    display: inline-block;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

/* Servicios Components */
.servicios-section {
    background: linear-gradient(135deg, #f8f6f0, #e8e2d5);
    position: relative;
}

.servicios-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.05"><circle cx="50" cy="50" r="2" fill="%23654321"/><circle cx="20" cy="20" r="1" fill="%23654321"/><circle cx="80" cy="80" r="1.5" fill="%23654321"/></svg>');
    background-size: 50px 50px;
}

.servicios-section .container {
    position: relative;
    z-index: 2;
}

.section-subtitle {
    text-align: center;
    color: var(--secondary-color);
    font-style: italic;
    margin-bottom: var(--spacing-xl);
    font-size: var(--font-size-lg);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.servicio-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(101, 67, 33, 0.15);
    transition: all var(--transition-fast);
    position: relative;
    border: 2px solid transparent;
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(101, 67, 33, 0.25);
    border-color: var(--accent-color);
}

.servicio-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.servicio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-fast);
}

.servicio-card:hover .servicio-image img {
    transform: scale(1.1);
}

.servicio-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(101, 67, 33, 0.2), rgba(139, 69, 19, 0.2));
}

.servicio-content {
    padding: var(--spacing-lg);
}

.servicio-title {
    font-size: var(--font-size-xl);
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    text-align: center;
}

.servicio-list {
    list-style: none;
    margin: var(--spacing-md) 0;
}

.servicio-list li {
    padding: var(--spacing-xs) 0;
    color: var(--secondary-color);
    position: relative;
    padding-left: var(--spacing-lg);
    font-weight: 500;
}

.servicio-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.servicio-description {
    margin-top: var(--spacing-md);
    font-style: italic;
    color: #666;
    line-height: 1.6;
    text-align: center;
    border-top: 1px solid rgba(101, 67, 33, 0.1);
    padding-top: var(--spacing-md);
}

/* Contact Components */
.contact-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)),
                url('../image/laguna.webp');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    color: var(--white);
    text-align: center;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 70, 32, 0.9), rgba(45, 107, 50, 0.9));
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: transform var(--transition-fast);
}

.contact-item:hover {
    transform: scale(1.05);
}

.contact-item i {
    font-size: var(--font-size-2xl);
    color: var(--accent-color);
}

.whatsapp-button {
    background: var(--whatsapp-green);
    color: var(--white);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-full);
    text-decoration: none;
    font-size: var(--font-size-lg);
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: all var(--transition-fast);
    margin-top: var(--spacing-lg);
}

.whatsapp-button:hover {
    background: var(--whatsapp-green-hover);
    transform: scale(1.05);
}

/* Footer Component */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    text-align: center;
    padding: var(--spacing-lg) 0;
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--whatsapp-green);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: var(--z-floating);
    transition: all var(--transition-fast);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background: var(--whatsapp-green-hover);
}

/* Floating WhatsApp Button */
.floating-whatsapp-main {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 60px !important;
    height: 60px !important;
    background: var(--whatsapp-green) !important;
    color: white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    z-index: 1000 !important;
    font-size: 1.8rem !important;
    transition: all 0.3s ease !important;
    opacity: 0;
    visibility: hidden;
}

.floating-whatsapp-main:hover {
    transform: scale(1.1) !important;
    background: var(--whatsapp-green-hover) !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.4) !important;
}

.floating-whatsapp-main.visible {
    opacity: 1;
    visibility: visible;
}

/* Mobile adjustments for floating WhatsApp */
@media (max-width: 768px) {
    .floating-whatsapp-main {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.5rem !important;
        bottom: 15px !important;
        right: 15px !important;
    }
}

@media (max-width: 480px) {
    .floating-whatsapp-main {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.3rem !important;
        bottom: 12px !important;
        right: 12px !important;
    }
}

/* Desktop layout for maestros (horizontal cards) */
@media (min-width: 769px) {
    .maestro-card {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        min-height: 200px;
    }
    
    .maestro-image {
        width: 200px;
        min-width: 200px;
        height: auto;
        flex-shrink: 0;
    }
    
    .maestro-info {
        flex: 1;
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .maestros-grid {
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
        gap: var(--spacing-lg);
    }
}
