body {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fffe;
    color: #2c3e50;
    line-height: 1.6;
    height: 100%;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

/* Fixed Logo */
.fixed-logo {
    position: fixed;
    top: 24px;
    left: 24px;
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid #d9f2ea;
    overflow: hidden;
}

.fixed-logo:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.logo-placeholder {
    font-size: 2.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
}

.camera-icon {
    font-size: 0.75rem;
    margin-top: 0.3rem;
    opacity: 0.6;
}

.upload-input {
    display: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    animation: fadeIn 0.25s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.25);
    max-height: 90%;
    overflow-y: auto;
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: #666;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: #f5f5f5;
}

.modal-close:hover {
    background: #d9f2ea;
    color: #2c3e50;
}

.card-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #e8f5f0 0%, #d9f2ea 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    border: 2px dashed #b0e6d3;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-placeholder:hover {
    background: linear-gradient(135deg, #d9f2ea 0%, #c5ede0 100%);
    border-color: #16a085;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.modal-content h3 {
    text-align: center;
    color: #1a3a3a;
    margin-bottom: 0.8rem;
    font-size: 1.6rem;
    font-weight: 600;
}

.modal-content p {
    text-align: center;
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* Header */
header {
    background: linear-gradient(135deg, #d9f2ea 0%, #c5ede0 100%);
    padding: 0;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

header > div {
    padding-top: 8rem;
    padding-bottom: 4rem;
    vertical-align: top;
}

h1 {
    font-size: 5.5rem;
    margin: 0 0 1.5rem 0;
    color: #1a3a3a;
    font-weight: 700;
    position: relative;
    z-index: 2;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.support-text {
    font-size: 1.3rem;
    color: #2c3e50;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
    position: relative;
    z-index: 2;
    line-height: 1.7;
}

/* Navigation */
/* Estructura de la barra de navegación */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.98);
  width: 100%;
  padding: 0.7rem 2rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  position: fixed;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

/* Logo dentro de la navegación */
.nav-logo img {
  height: 55px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.nav-logo img:hover {
  transform: scale(1.05);
}

/* Contenedor de enlaces */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: #2c3e50;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  position: relative;
}

.nav-links a:hover {
  color: #16a085;
  background: #e8f5f0;
}






/* Sections */
section {
    max-width: 1300px;
    margin: 4.5rem auto;
    padding: 0 2rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3.5rem;
    color: #1a3a3a;
    position: relative;
    padding-bottom: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #d9f2ea 0%, #b0e6d3 100%);
    border-radius: 2px;
}

/* Services Grid - 2 + 3 Layout */
.services-container {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
}

.services-row {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.service-card {
    background: white;
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid #f5f5f5;
    position: relative;
    overflow: hidden;
    height: 250px;
    width: 340px;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
    border-color: #d9f2ea;
}

.service-front {
    padding: 2.5rem 2rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.service-back {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.5rem;
    background: linear-gradient(135deg, #d9f2ea 0%, #c5ede0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-front {
    opacity: 0;
}

.service-card:hover .service-back {
    opacity: 1;
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: #1a3a3a;
    font-weight: 600;
    line-height: 1.3;
}

.service-back p {
    color: #2c3e50;
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: center;
    font-weight: 400;
}

/* Team Grid - 2 Columns */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.team-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    cursor: pointer;
    border: 2px solid #f5f5f5;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
    border-color: #d9f2ea;
}

.team-photo {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #e8f5f0 0%, #d9f2ea 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.team-photo:hover {
    background: linear-gradient(135deg, #d9f2ea 0%, #c5ede0 100%);
}

.team-photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.team-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.team-info {
    padding: 2rem 1.5rem;
    background: white;
}

.team-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #1a3a3a;
}

.team-quote {
    font-style: italic;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    padding: 0 0.5rem;
    margin-bottom: 0;
}

.team-quote::before {
    content: '"';
    font-size: 1.8rem;
    color: #d9f2ea;
    position: absolute;
    left: -0.5rem;
    top: -0.5rem;
}

.team-quote::after {
    content: '"';
    font-size: 1.8rem;
    color: #d9f2ea;
    position: absolute;
    right: -0.5rem;
    bottom: -0.8rem;
}

.team-bio {
    padding: 1.2rem 1.5rem;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    line-height: 1.6;
}

/* Team Modal */
.team-image-placeholder {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #e8f5f0 0%, #d9f2ea 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    border: 2px dashed #b0e6d3;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-image-placeholder:hover {
    background: linear-gradient(135deg, #d9f2ea 0%, #c5ede0 100%);
    border-color: #16a085;
}

.team-modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}

/* Contact Section */
.contact-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%);
    padding: 4rem 3rem;
    border-radius: 16px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    border: 2px solid #e8f5f0;
}

.contact-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.contact-email {
    font-size: 1.5rem;
    color: #16a085;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, #d9f2ea 0%, #c5ede0 100%);
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.contact-email:hover {
    background: linear-gradient(135deg, #c5ede0 0%, #b0e6d3 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.contact-text {
    margin-top: 2rem;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    text-align: center;
    padding: 2.5rem;
    margin-top: 5rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d9f2ea 0%, #b0e6d3 100%);
}

footer p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.title {
    font-size: 3rem !important;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }

    .support-text {
        font-size: 1.1rem;
    }

    nav a {
        display: block;
        margin: 0.5rem 0;
    }

    .services-row {
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        width: 100%;
        max-width: 400px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 2rem;
    }

    .fixed-logo {
        width: 70px;
        height: 70px;
    }

    .logo-placeholder {
        font-size: 2.2rem;
    }

    .camera-icon {
        font-size: 0.7rem;
    }

    section {
        margin: 3rem auto;
    }
}

.upload-hint {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}

@view-transition {
    navigation: auto;
}