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

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Header Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: #4a4a4a;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #4a4a4a;
    background: rgba(74, 74, 74, 0.1);
}

.nav-link.active {
    color: #4a4a4a;
    background: rgba(74, 74, 74, 0.1);
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
}

.language-dropdown {
    background: transparent;
    border: none;
    color: #2c3e50;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.language-dropdown:hover {
    color: #4a4a4a;
    background: rgba(74, 74, 74, 0.1);
}

.language-dropdown:focus {
    color: #4a4a4a;
    background: rgba(74, 74, 74, 0.1);
}

.language-dropdown option {
    background: white;
    color: #2c3e50;
    padding: 0.5rem;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.bar {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 0;
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
    }

    .nav-link {
        padding: 1rem;
        display: block;
        font-size: 1.1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .language-dropdown {
        padding: 1rem;
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
    }
}

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

/* Splash Screen */
.splash-screen {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    text-align: center;
    overflow: hidden;
}

.splash-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

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

.splash-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.splash-content {
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1.5s ease-out;
    text-align: center;
    z-index: 2;
}

.splash-title {
    position: absolute;
    top: 100px;
    left: 100px;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.splash-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    opacity: 0.9;
}

.splash-cta {
    display: inline-block;
    padding: 18px 40px;
    background: #4a4a4a;
    color: white;
    text-decoration: none;
    border-radius: 0;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(74, 74, 74, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.splash-cta:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(74, 74, 74, 0.4);
}

/* Animaci¨®n de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Styles */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 0;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #4a4a4a;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 74, 74, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #4a4a4a;
    border: 2px solid #4a4a4a;
}

.btn-secondary:hover {
    background: #4a4a4a;
    color: white;
    transform: translateY(-2px);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Portfolio Section */
.portfolio {
    padding: 120px 0 100px;
    background: #f8f9fa;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 0;
    padding-bottom: 100%; /* Esto crea un cuadrado perfecto */
}

.portfolio-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(74, 74, 74, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-info {
    text-align: center;
    color: white;
}

.portfolio-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.view-project {
    padding: 8px 20px;
    background: white;
    color: #4a4a4a;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-project:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: 120px 0 100px;
    background: #fff;
}

.about-header {
    margin-bottom: 5rem;
}

.about-title {
    font-size: 5rem;
    font-weight: 900;
    color: #000;
    letter-spacing: 3px;
    margin: 0;
    text-align: left;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

.about-text {
    padding-right: 2rem;
}

.studio-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.studio-subtitle {
    font-size: 0.9rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    text-align: left;
}

.studio-description {
    font-size: 0.95rem;
    color: #000;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: justify;
    font-weight: 400;
}

.studio-philosophy {
    font-size: 0.95rem;
    color: #000;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: justify;
    font-weight: 400;
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-image {
    margin-bottom: 2rem;
}

.profile-image img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.profile-image img:hover {
    filter: grayscale(0%);
}

.profile-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background-color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    transition: background-color 0.3s ease;
}

.profile-placeholder:hover {
    background-color: #666;
}

.profile-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    letter-spacing: 0.5px;
    text-align: center;
}

.profile-credentials {
    font-size: 0.85rem;
    color: #000;
    line-height: 1.5;
    text-align: justify;
    font-weight: 400;
}

/* Contact Section */
.contact {
    padding: 120px 0 100px;
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #4a4a4a;
    margin-right: 1rem;
    margin-top: 0.2rem;
}

.contact-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item p {
    color: #666;
}

.social-links {
    margin-top: 2rem;
}

.social-links h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: #4a4a4a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* ========================================
   GOOGLE FORM INTEGRATION STYLES - NUEVO
   ======================================== */

/* Google Form Integration Styles */
.contact-form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-form-container h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-form-container p {
    color: #666;
    margin-bottom: 2rem;
}

.google-form-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.google-form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 74, 74, 0.3);
}

.direct-contact {
    border-top: 1px solid #eee;
    padding-top: 2rem;
    margin-top: 2rem;
}

.direct-contact p {
    margin-bottom: 0.5rem;
    color: #666;
}

.direct-contact a {
    color: #4a4a4a;
    text-decoration: none;
    font-weight: 500;
}

.direct-contact a:hover {
    color: #2980b9;
}

/* Modal para Google Form */
.google-form-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.google-form-content {
    background-color: white;
    margin: 2% auto;
    padding: 20px;
    border-radius: 0;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
}

.close-google-form {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 10;
}

.close-google-form:hover {
    color: #333;
}

#googleFormIframe {
    border: none;
    width: 100%;
    height: 600px;
}

/* ========================================
   FIN GOOGLE FORM INTEGRATION STYLES
   ======================================== */

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #f5f5f5;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #4a4a4a;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 35px;
    height: 35px;
    background: #4a4a4a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 2rem;
    text-align: center;
    color: #bdc3c7;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 0;
    width: 95%;
    max-width: 1200px;
    max-height: 95vh;
    overflow: hidden;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 10;
}

.close:hover {
    color: #333;
}

.project-modal-header {
    position: sticky;
    top: 0;
    background: white;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    z-index: 10;
}

.project-modal-body {
    padding: 0;
}

.project-images-container {
    max-height: 60vh;
    overflow-y: auto;
    padding: 1rem;
}

.project-image-slide {
    margin-bottom: 1rem;
}

.project-image-slide img {
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.project-details {
    padding: 2rem;
    background: #f8f9fa;
}

.project-details h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.project-year {
    font-size: 1.1rem;
    color: #4a4a4a;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.project-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.project-info-card {
    background: #f8f9fa;
    border-radius: 0;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-height: 400px;
}

.project-info-content {
    padding: 3rem;
    width: 100%;
}

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

.project-info-left,
.project-info-center,
.project-info-right {
    text-align: left;
}

.tech-item {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.tech-item strong {
    color: #2c3e50;
    font-weight: 600;
    display: inline-block;
    min-width: 80px;
}

.project-info-center p,
.project-info-right p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    text-align: justify;
    font-weight: 400;
    margin-top: 0;
}

/* Responsive design for project info */
@media (max-width: 768px) {
    .project-info-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-info-content {
        padding: 2rem;
    }
    
    .tech-item {
        font-size: 0.9rem;
    }
    
    .tech-item strong {
        min-width: 70px;
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .splash-screen {
        background-attachment: scroll;
    }
    
    .splash-title {
        font-size: 3rem;
    }
    
    .splash-subtitle {
        font-size: 1.3rem;
    }

    .about-title {
        font-size: 3rem;
        text-align: center;
        margin-bottom: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-text {
        padding-right: 0;
        text-align: left;
    }

    .profile {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .profile-image img {
        width: 100px;
        height: 100px;
    }

    .profile-placeholder {
        width: 120px;
        height: 120px;
        font-size: 1.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }

    /* Google Form responsive */
    .google-form-content {
        width: 95%;
        margin: 5% auto;
        padding: 15px;
    }
    
    #googleFormIframe {
        height: 500px;
    }
    
    .google-form-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .contact-form-container {
        padding: 2rem 1.5rem;
    }

    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
        width: 95%;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .splash-title {
        font-size: 2.5rem;
    }
    
    .splash-subtitle {
        font-size: 1.2rem;
    }
    
    .splash-cta {
        padding: 15px 30px;
        font-size: 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effects */
.portfolio-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus States for Accessibility */
.btn:focus,
.nav-link:focus,
.language-dropdown:focus {
    outline: 2px solid #4a4a4a;
    outline-offset: 2px;
}