/* ================================================
   PHRAGMIPEDIUMKOVACHII.COM - CLEAN CONSOLIDATED STYLES
   ================================================ */

/* === CSS Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6f225b;
    --secondary-color: #ea5297;
    --text-color: #4B4F58;
    --bg-color: #F5F5F5;
    --white: #ffffff;
    --container-width: 1240px;
}

html {
    font-size: 93.75%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.3;
}

h1 { font-size: 2.67rem; }
h2 { font-size: 2.13rem; }
h3 { font-size: 1.73rem; }
h4 { font-size: 1.6rem; }
h5 { font-size: 1.33rem; }
h6 { font-size: 1.07rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* === SVG Icons === */
svg.icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === Layout === */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 0;
}

/* === Header === */
header {
    background: var(--white);
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

/* === Navigation === */
nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: 0.3s;
}

/* === Hero/Inicio Section === */
#inicio {
    background-image: url('./images/fondo-home3.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    min-height: 950px;
    display: flex;
    align-items: center;
    justify-content: center;
}



#inicio .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    justify-items: center;
}

.hero-text h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.hero-text p {
    margin-bottom: 15px;
}

.hero-text strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.hero-image img {
    max-width: 421px;
    border-radius: 10px;
}

/* === Production Section === */
#produccion {
    background: var(--white);
}

.production-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.production-text h2 {
    color: var(--text-color);
    margin-bottom: 20px;
}

.production-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.production-image {
    position: relative;
}

.production-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.production-image figcaption {
    margin-top: 10px;
    font-size: 0.9em;
    color: var(--primary-color);
    text-align: center;
}

/* === Carousel Styles === */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    text-align: center;
}

.carousel-item img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.carousel-caption {
    margin-top: 15px;
    font-size: 0.95em;
    color: var(--primary-color);
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
}

.carousel-btn {
    background: rgba(255,255,255,0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* === Cultivation Section === */
#cultivo {
    background: var(--bg-color);
}

.cultivation-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.cultivation-carousel {
    max-width: 900px;
    margin: 0 auto;
}

/* === Orchids Gallery === */
#algunas-orqui {
    background: var(--white);
}

.orchids-header {
    text-align: center;
    margin-bottom: 40px;
}

.orchids-carousel {
    max-width: 1000px;
    margin: 0 auto;
}

.orchid-item img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.orchid-item img:hover {
    transform: scale(1.05);
}

/* === Contact Section === */
#contacto {
    background: var(--bg-color);
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-item {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-item h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.contact-item p {
    color: var(--text-color);
    line-height: 1.8;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.map-container {
    margin-top: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* === Footer === */
footer {
    background: #eeeeee;
    border-top: 1px solid #ddd;
    padding: 20px 0;
    text-align: center;
}

footer p {
    color: var(--text-color);
    font-size: 0.9em;
}

footer a {
    color: var(--primary-color);
}

footer a:hover {
    color: var(--secondary-color);
}

/* === Scroll to Top Button === */
#scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 999;
}

#scroll-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

#scroll-top.visible {
    display: flex;
}

/* === Lightbox === */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--white);
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--secondary-color);
}

/* === Responsive Design === */
@media (max-width: 1024px) {
    .hero-content,
    .production-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-image,
    .production-images {
        order: -1;
    }
    
    #inicio {
        min-height: 650px;
    }
    
    nav ul {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 85.5%;
    }
    
    section {
        padding: 40px 0;
    }
    
    /* Desactivar parallax en móviles para mejor rendimiento */
    #inicio {
        background-attachment: scroll;
        min-height: 550px;
        background-position: center bottom;
    }
    
    .header-inner {
        padding: 10px 20px;
    }
    
    .logo img {
        height: 50px;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    nav li {
        border-bottom: 1px solid #f0f0f0;
    }
    
    nav a {
        display: block;
        padding: 15px 0;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1000;
    }
    
    nav.active ~ .menu-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    nav.active ~ .menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    
    nav.active ~ .menu-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .production-images {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.67rem; }
    h3 { font-size: 1.33rem; }
}

@media (max-width: 544px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 30px 0;
    }
    
    #inicio {
        min-height: 500px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .map-container iframe {
        height: 300px;
    }
    
    #scroll-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}

/* === Utilities === */
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
