/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: "Lato", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #000;
}

/* Header Styles - Sticky with Blur Effect */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.elementor-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.elementor-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
    position: relative;
}

.elementor-col-20 {
    flex: 1;
}

.elementor-col-20:first-child {
    flex: 2;
}

.elementor-col-20 {
    display: flex;
    align-items: center;
    justify-content: center;
}

.elementor-heading-title {
    margin: 0;
    padding: 0;
}

.elementor-heading-title a {
    color: white;
    text-decoration: none;
    font-family: "Lato", sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    display: inline-block;
}

.elementor-heading-title a:hover {
    color: #fff;
    transform: translateY(-3px);
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.9);
}

/* Header Navigation Buttons - Floating Text Only */
#site-header .elementor-button {
    background: transparent !important;
    border: none !important;
    color: white;
    text-decoration: none;
    padding: 0 !important;
    font-family: "Lato", sans-serif;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    border-radius: 0 !important;
    box-shadow: none !important;
}

#site-header .elementor-button:hover {
    color: #fff;
    transform: translateY(-2px);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    background: transparent !important;
    border: none !important;
}

/* Language Toggle Button */
#language-toggle {
    /* Inherits all styling from .elementor-button and .elementor-animation-float */
}


.elementor-button-text {
    color: inherit;
    transition: inherit;
}

.elementor-align-center {
    text-align: center;
}

.elementor-align-left {
    text-align: left;
}

/* Home Section */
.home-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('imgs/home/home.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 15vh;
}

.home-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.home-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.home-title {
    font-family: "Lato", sans-serif;
    font-size: 24px;
    font-weight: 300;
    text-transform: capitalize;
    font-style: normal;
    line-height: 1.3em;
    letter-spacing: 8.6px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    max-width: 800px;
    margin: 0 auto;
}

/* Biografia Section */
.biografia-section {
    min-height: 100vh;
    position: relative;
    background-color: #000;
    display: flex;
    align-items: center;
    padding-top: 120px;
    justify-content: center;
    padding-top: 120px;
}

.biografia-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.biografia-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.profile-container {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-image {
    border-radius: 50%;
    border: 1px solid black;
    width: 350px;
    height: 350px;
    object-fit: cover;
}

.biografia-text {
    max-width: 1000px;
    text-align: center;
}

.biografia-text h1 {
    font-family: "Lato", sans-serif;
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: 4px;
}

.bio-content {
    text-align: justify;
    line-height: 1.8;
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.bio-content p {
    margin-bottom: 1.5rem;
}

.bio-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    font-weight: 400;
    text-align: center;
}

.bio-content ul {
    list-style-type: disc;
    padding-left: 0;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    list-style-position: inside;
}

.bio-content li {
    margin-bottom: 0.5rem;
}

/* Obras Section */
.obras-section {
    min-height: 100vh;
    background-color: #111;
    padding: 140px 2rem 2rem;
    color: white;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
}

.obras-container {
    max-width: 1200px;
    margin: 0 auto;
}

.obras-title {
    font-family: "Lato", sans-serif;
    font-size: 3rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 4px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    color: white;
}

.obras-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.obra-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.obra-card:hover {
    transform: scale(1.05);
}

.obra-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* Estilo específico para Romeo y Julieta para eliminar margen negro inferior */
.obra-card img[src*="ROMEO Y JULIETA 3.jpeg"] {
    transform: scale(1.15);
    object-position: center top;
}

.obra-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.obra-card:hover .obra-overlay {
    transform: translateY(0);
}

.obra-overlay h3 {
    font-family: "Lato", sans-serif;
    font-style: italic;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.obra-card a {
    text-decoration: none;
    color: inherit;
}

/* Obra Individual Page */
.obra-individual-section {
    min-height: 100vh;
    background-color: #000;
    color: white;
    padding: 140px 2rem 2rem;
}

.obra-individual-container {
    max-width: 1200px;
    margin: 0 auto;
}

.back-button {
    margin-bottom: 2rem;
}

.back-button a {
    color: #ccc;
    text-decoration: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.back-button a:hover {
    color: white;
}

.obra-title {
    font-family: "Lato", sans-serif;
    font-size: 2.5rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 3px;
}

.obra-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.obra-left-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.obra-right-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.video-container {
    width: 100%;
}

.video-container iframe {
    width: 100%;
    height: 315px;
    border-radius: 8px;
}

.video-placeholder {
    width: 100%;
    height: 315px;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
}

.video-placeholder p {
    margin: 0.5rem 0;
}

.video-placeholder a {
    color: #fff;
    text-decoration: underline;
    transition: all 0.3s ease;
    margin-top: 1rem;
    font-weight: 500;
}

.video-placeholder a:hover {
    color: #ccc;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Gallery Carousel Styles */
.gallery {
    margin-top: 0;
}

.carousel-container {
    position: relative;
    max-width: 100%;
    margin: 2rem 0;
}

.carousel {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 1rem 1.2rem;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 1rem;
}

.carousel-btn.next {
    right: 1rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

/* Responsive for carousel */
@media (max-width: 768px) {
    .carousel {
        height: 250px;
    }
    
    .carousel-btn {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
    
    .carousel-btn.prev {
        left: 0.5rem;
    }
    
    .carousel-btn.next {
        right: 0.5rem;
    }
    
    .carousel-dots {
        gap: 0.3rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

.obra-info h2 {
    font-family: "Lato", sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.obra-info h3 {
    font-family: "Lato", sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    margin: 1.5rem 0 1rem 0;
    letter-spacing: 1px;
}

.obra-info h4 {
    font-family: "Lato", sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    margin: 1rem 0 0.5rem 0;
}

.creditos p,
.argumento p {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-weight: 300;
}

.creditos {
    margin-bottom: 2rem;
}

/* Contacto Section */
.contacto-section {
    min-height: 100vh;
    position: relative;
    background-image: url('imgs/contacto/iñaki_contacto_background.jpg');
    background-size: cover;
    background-position: center;
    padding-top: 120px;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
}

.contacto-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.contacto-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Contacto - Título */
.elementor-element-28b09c4b .elementor-heading-title {
    font-family: "Lato", sans-serif;
    font-size: 61px;
    font-weight: 100;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 4px;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8);
    color: white;
}

/* Contacto - Redes Sociales */
.elementor-social-icons-wrapper {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
}

.elementor-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 32px;
    transition: all 0.3s ease;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    width: auto;
    height: auto;
}

.elementor-social-icon:hover {
    color: #ddd;
    transform: scale(1.2);
}

.elementor-screen-only {
    display: none !important;
}

.elementor-animation-float:hover {
    transform: translateY(-3px);
    transition: transform 0.3s ease-in-out;
}

/* Contacto - Email */
.elementor-element-2ba8390 .elementor-heading-title {
    text-align: center;
    margin: 2rem 0;
}

.elementor-element-2ba8390 .elementor-heading-title a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.elementor-element-2ba8390 .elementor-heading-title a:hover {
    color: #ccc;
}

/* Contacto - Línea separadora */
.elementor-divider {
    width: 300px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 2rem auto;
}

.elementor-divider-separator {
    display: block;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
}

/* Contacto - Formulario */
.elementor-form {
    max-width: 1200px;
    width: 95%;
    margin: 3rem auto 0;
}

.elementor-form-fields-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
}

.elementor-col-50 {
    grid-column: span 1;
    min-width: 300px;
}

.elementor-col-100 {
    grid-column: span 2;
    margin-top: 1rem;
}

.elementor-field-label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 400;
    color: white;
    font-size: 18px;
    letter-spacing: 1px;
}

.elementor-field {
    width: 100% !important;
    min-width: 250px !important;
    padding: 18px 20px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    font-family: "Lato", sans-serif !important;
    font-size: 16px !important;
    border-radius: 4px !important;
    transition: border-color 0.3s ease, background-color 0.3s ease !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Estilos específicos para clases de Elementor */
.elementor-field-textual {
    width: 100% !important;
    min-width: 250px !important;
    box-sizing: border-box !important;
}

.elementor-size-md {
    width: 100% !important;
    min-width: 250px !important;
    box-sizing: border-box !important;
}

.elementor-field-group {
    width: 100% !important;
    box-sizing: border-box !important;
}

input[type="text"], input[type="email"], textarea {
    width: 100% !important;
    min-width: 250px !important;
    box-sizing: border-box !important;
}

.elementor-field:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.15);
}

.elementor-field::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

textarea.elementor-field {
    resize: vertical;
    min-height: 150px;
    font-family: "Lato", sans-serif;
}

.elementor-button {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 16px 40px;
    font-family: "Lato", sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.elementor-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.elementor-field-type-submit {
    text-align: center;
    grid-column: span 2;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header responsive */
    #site-header {
        padding: 1rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .elementor-row {
        gap: 1rem;
    }
    
    .elementor-heading-title a {
        font-size: 20px;
        letter-spacing: 2px;
    }
    
    #site-header .elementor-button {
        font-size: 12px;
        letter-spacing: 1px;
    }
    
    /* Ajustar padding para header más pequeño en móvil */
    .biografia-section,
    .contacto-section {
        padding-top: 100px;
    }
    
    .obras-section,
    .obra-individual-section {
        padding-top: 120px;
    }
    
    /* Asegurar altura mínima completa en mobile home */
    .home-section {
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height for better mobile support */
        height: auto;
    }
    
    .home-title {
        font-size: 18px;
        letter-spacing: 4px;
        padding: 0 1rem;
    }
    
    .biografia-text h1,
    .obras-title {
        font-size: 2rem;
    }
    
    .elementor-element-28b09c4b .elementor-heading-title {
        font-size: 40px;
    }
    
.obras-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Only apply single column on very small mobile screens */
    }

@media (max-width: 480px) {
    .obra-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .video-container iframe {
        height: 200px;
    }
    
    .elementor-row {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .elementor-col-20:first-child {
        flex: 1;
        margin-bottom: 1rem;
    }
    
    .elementor-heading-title a {
        font-size: 22px;
        letter-spacing: 2px;
    }
    
    .elementor-button {
        font-size: 14px;
        letter-spacing: 2px;
        margin: 0 0.5rem;
    }
    
    .elementor-form {
        max-width: 95%;
        width: 95%;
    }
    
    .elementor-form-fields-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .elementor-col-50 {
        grid-column: span 1;
    }
    
    .elementor-field {
        padding: 16px 18px;
        font-size: 16px;
    }
    
    .elementor-field-label {
        font-size: 16px;
    }
    
    .elementor-button {
        padding: 14px 32px;
        font-size: 16px;
    }
    
    .elementor-social-icons-wrapper {
        gap: 1rem;
    }
    
    .elementor-social-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .elementor-col-50 {
        grid-column: span 2;
    }
    
    .profile-image {
        width: 250px;
        height: 250px;
    }
    
    .bio-content {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    /* Header responsive small screens */
    #site-header {
        padding: 0.8rem 0;
    }
    
    .elementor-row {
        gap: 0.5rem;
        flex-wrap: nowrap;
    }
    
    .elementor-heading-title a {
        font-size: 16px;
        letter-spacing: 1px;
    }
    
    #site-header .elementor-button {
        font-size: 10px;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }
    
    /* Ocultar botón de traducción en móvil */
    .language-toggle {
        display: none !important;
    }
    
    .elementor-col-20:first-child {
        flex: 1.5;
    }
    
    /* Ajustar padding para header aún más pequeño */
    .biografia-section,
    .contacto-section {
        padding-top: 80px;
    }
    
    .obras-section,
    .obra-individual-section {
        padding-top: 100px;
    }
    
    .home-title {
        font-size: 16px;
        letter-spacing: 2px;
    }
    
    .biografia-text h1,
    .obras-title {
        font-size: 1.5rem;
    }
    
    .elementor-element-28b09c4b .elementor-heading-title {
        font-size: 30px;
    }
    
    .obra-card img {
        aspect-ratio: 16 / 9;
    }
    
    .obras-grid {
        grid-template-columns: 1fr;
    }
}

