/* ==========================================
   VARIABLES Y RESET
   ========================================== */
:root {
    --primary-color: #593202;
    --secondary-color: #733702;
    --tertiary-color: #592B02;
    --light-color: #F2F2F2;
    --dark-color: #2C1810;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(89, 50, 2, 0.1);
    --shadow-hover: 0 8px 30px rgba(89, 50, 2, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary-color);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    margin-bottom: 1rem;
}

/* ==========================================
   CONTAINER
   ========================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-service {
    background: var(--secondary-color);
    color: white;
}

.btn-service:hover {
    background: var(--primary-color);
    transform: translateX(5px);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ==========================================
   HERO SLIDER SECTION
   ========================================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(89, 50, 2, 0.8) 0%,
        rgba(115, 55, 2, 0.6) 50%,
        rgba(89, 43, 2, 0.8) 100%
    );
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    color: white;
    width: 90%;
    max-width: 1200px;
}

.hero-text h1 {
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 300;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-style: italic;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    z-index: 15;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    gap: 1rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: white;
    width: 40px;
    border-radius: 6px;
}

/* ==========================================
   EVENT TYPES SECTION
   ========================================== */
.event-types-section {
    padding: 6rem 0;
    background: var(--light-color);
}

.section-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.section-pretitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-main-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--primary-color);
}

.event-type-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    background: white;
    padding: 3rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.event-type-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.event-type-card.reverse {
    direction: rtl;
}

.event-type-card.reverse .event-content {
    direction: ltr;
}

.event-category {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.event-description {
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.event-image {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    height: 400px;
    width: 100%;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-type-card:hover .event-image img {
    transform: scale(1.05);
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services-section {
    padding: 6rem 0;
    background: white;
}

.services-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.services-pretitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.services-main-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--primary-color);
}

.service-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
    padding-bottom: 5rem;
    border-bottom: 1px solid #e0e0e0;
}

.service-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.service-card.reverse {
    direction: rtl;
}

.service-card.reverse .service-content {
    direction: ltr;
}

.service-content h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.service-description {
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1.125rem;
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
}

.service-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #444;
    font-size: 1rem;
}

.service-features i {
    color: var(--secondary-color);
    font-size: 1.25rem;
}

.service-image {
    position: relative;
    overflow: hidden;
    height: 450px;
    box-shadow: var(--shadow);
    width: 100%;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

/* ==========================================
   CONTACT & MAP SECTION
   ========================================== */
.contact-map-section {
    padding: 6rem 0;
    background: var(--light-color);
}

.contact-map-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info-box {
    background: white;
    padding: 3rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-item i {
    font-size: 2rem;
    color: var(--primary-color);
    min-width: 40px;
}

.info-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.info-item p,
.info-item a {
    color: #555;
    font-size: 1rem;
}

.info-item a:hover {
    color: var(--primary-color);
}

.map-container {
    box-shadow: var(--shadow);
    overflow: hidden;
}

.map-container iframe {
    display: block;
    width: 100%;
}

/* ==========================================
   RESPONSIVE - DESKTOP FIRST
   ========================================== */

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
    /* Event Types */
    .event-type-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem;
    }
    
    .event-type-card.reverse {
        direction: ltr;
    }
    
    .event-image {
        height: 350px;
        width: 100%;
    }
    
    /* Services */
    .service-card {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .service-card.reverse {
        direction: ltr;
    }
    
    .service-image {
        height: 400px;
        width: 100%;
    }
    
    /* Contact Map */
    .contact-map-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Móviles grandes y tablets pequeñas */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    /* Hero */
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .slider-controls {
        padding: 0 1rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Event Types */
    .event-type-card {
        padding: 2rem;
        gap: 1.5rem;
    }
    
    .event-image {
        height: 300px;
    }
    
    .event-title {
        font-size: 1.75rem;
    }
    
    .event-category {
        font-size: 0.8rem;
    }
    
    /* Services */
    .service-card {
        padding-bottom: 3rem;
        margin-bottom: 3rem;
    }
    
    .service-image {
        height: 350px;
    }
    
    .section-intro,
    .services-intro {
        margin-bottom: 3rem;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    /* Hero */
    .hero-slider {
        min-height: 500px;
    }
    
    /* Event Types */
    .event-type-card {
        padding: 1.5rem;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .event-image {
        height: 250px;
    }
    
    .event-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .event-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-outline {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
    
    /* Services */
    .service-card {
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }
    
    .service-image {
        height: 300px;
    }
    
    .section-intro,
    .services-intro {
        margin-bottom: 2rem;
    }
}

/* ==========================================
   FIX ESPECÍFICO PARA EVENT-TYPE-CARD
   ========================================== */

.event-content {
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.event-title,
.event-description {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

.btn-outline {
    max-width: 100%;
    text-align: center;
    white-space: normal;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .event-type-card {
        padding: 1.5rem !important;
        gap: 1.5rem !important;
    }
    
    .event-content {
        padding: 0;
    }
    
    .event-image {
        height: 280px !important;
        width: 100% !important;
        margin: 0 !important;
    }
    
    .btn-outline {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .event-type-card {
        padding: 1rem !important;
    }
    
    .event-title {
        font-size: 1.4rem !important;
    }
    
    .event-description {
        font-size: 0.9rem !important;
    }
    
    .event-image {
        height: 220px !important;
    }
}

/* ==========================================
   FIX ESPECÍFICO PARA SERVICE-CARD
   ========================================== */

.service-content {
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.service-content h2 {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

.service-description {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

.service-features {
    max-width: 100%;
}

.service-features li {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.service-image {
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-service {
    max-width: 100%;
    white-space: normal;
    line-height: 1.4;
    text-align: center;
}

/* Responsive específico para Services */
@media (max-width: 1024px) {
    .service-card {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
        padding: 2.5rem !important;
    }
    
    .service-card.reverse {
        direction: ltr !important;
    }
    
    .service-content {
        order: 1;
        width: 100%;
    }
    
    .service-image {
        order: 2;
        height: 400px !important;
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .service-card {
        padding: 2rem !important;
        gap: 2rem !important;
        margin-bottom: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .service-content h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .service-description {
        font-size: 1rem;
    }
    
    .service-image {
        height: 350px !important;
    }
    
    .btn-service {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 1.5rem !important;
        gap: 1.5rem !important;
        margin-bottom: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .service-content h2 {
        font-size: 1.5rem;
    }
    
    .service-description {
        font-size: 0.95rem;
    }
    
    .service-features li {
        font-size: 0.9rem;
        padding: 0.5rem 0;
    }
    
    .service-image {
        height: 280px !important;
    }
    
    .btn-service {
        padding: 0.875rem 1.25rem;
        font-size: 0.8rem;
    }
}