/* Estilos generales */
:root {
  --primary-color: #6a11cb;
  --secondary-color: #2575fc;
  --accent-color: #ff3e9d;
  --dark-color: #1a1a2e;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Montserrat', sans-serif;
  --transition: all 0.3s ease;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--dark-color);
  background-color: var(--light-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
  color: var(--dark-color);
}

.section-title .highlight {
  color: var(--primary-color);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-color);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(106, 17, 203, 0.3);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(106, 17, 203, 0.4);
  background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
}

/* Header */
header {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(rgba(26, 26, 46, 0.8), rgba(26, 26, 46, 0.8)), 
              url('img/fondo4.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.header-overlay {
  position: relative;
  z-index: 2;
  padding: 0 20px;
  width: 100%;
}

.header-content {
  max-width: 1000px;
  margin: 0 auto;
}

.header-logo-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.studio-logo {
  width: 220px;
  height: 220px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  background-color: rgba(255, 255, 255, 0.075);
  padding: 10px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

header h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fff, #c9d6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.8);
}

.header-services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 3rem;
}

.service-tag {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(to right, var(--accent-color), #ff7b54);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(255, 62, 157, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 62, 157, 0.4);
  background: linear-gradient(to right, #ff7b54, var(--accent-color));
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

/* Navigation */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--dark-color);
}

.nav-logo img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark-color);
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white !important;
  padding: 8px 20px;
  border-radius: 50px;
  margin-left: 20px;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--dark-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Identity Section */
.identity-section {
  padding: 100px 0;
  background-color: white;
}

.identity-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.identity-text {
  flex: 1;
}

.identity-image {
    flex: 1;
    min-width: 0; /* Evita problemas de overflow */
}

/* Estilos para el contenedor del Reel */
.instagram-media {
    width: 100% !important; /* Forzar ancho completo */
    min-width: 300px; /* Mínimo ancho para evitar colapso */
    border-radius: var(--border-radius) !important;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* Asegurar que el iframe sea responsive */
.instagram-media iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 9/16; /* Relación de aspecto típica de Reels (vertical) */
}

.identity-description {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--gray-color);
}

.identity-description strong {
  color: var(--dark-color);
}

.identity-stats {
  display: flex;
  gap: 30px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
  line-height: 1;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-color);
}

/* Portfolio Section */
.portfolio-section {
  padding: 100px 0;
  background-color: #f8f9fa;
}

.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  background: none;
  border: 1px solid #ddd;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.filter-btn.active, .filter-btn:hover {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  border-color: transparent;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.portfolio-item {
  transition: var(--transition);
}

.portfolio-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(106, 17, 203, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-link {
  color: white;
  font-size: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.portfolio-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.portfolio-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-info h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.portfolio-info p {
  color: var(--gray-color);
  margin-bottom: 15px;
  flex: 1;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolio-tags span {
  background-color: #f0f0f0;
  color: var(--dark-color);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

.portfolio-cta {
  text-align: center;
  margin-top: 50px;
}

/* Services Section */
.services-section {
  padding: 100px 0;
  background-color: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid #eee;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.service-card p {
  color: var(--gray-color);
  margin-bottom: 20px;
}

.service-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.service-features {
  margin-bottom: 25px;
  text-align: left;
}

.service-features li {
  margin-bottom: 10px;
  color: var(--gray-color);
  display: flex;
  align-items: center;
}

.service-features i {
  margin-right: 10px;
  color: var(--success-color);
}

.service-button {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--light-color);
  color: var(--primary-color);
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--primary-color);
}

.service-button:hover {
  background-color: var(--primary-color);
  color: white;
}

/* About Section */
.about-section {
  padding: 100px 0;
  background-color: #f8f9fa;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1;
  text-align: center;
}

.profile-photo {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 10px solid white;
  box-shadow: var(--box-shadow);
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.social-link:hover {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  transform: translateY(-3px);
}

.about-text {
  flex: 1;
}

.about-description {
  margin-bottom: 20px;
  color: var(--gray-color);
}

.about-description strong {
  color: var(--dark-color);
}

.skills-section {
  margin-top: 40px;
}

.skills-title {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.skills-container {
  margin-bottom: 30px;
}

.skill-category {
  margin-bottom: 20px;
}

.skill-category h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--dark-color);
}

.skill-bar {
  height: 10px;
  background-color: #e9ecef;
  border-radius: 5px;
  overflow: hidden;
}

.skill-level {
  width: 0; /* Comienza en 0 */
  transition: width 1s ease-in-out; /* Transición suave */
  height: 100%;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 5px;
  position: relative;
}

.skill-level::after {
  content: attr(data-level);
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
}

.tools-section {
  margin-top: 40px;
}

.tools-title {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 15px;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.tool-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tool-item i {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.tool-item span {
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.ae-icon::before {
  content: "AE";
  display: block;
  font-family: var(--font-secondary);
  font-weight: bold;
  font-size: 1.2rem;
  color: #00005B;
  margin-bottom: 5px;
}
/* Contact Section */
.contact-section {
  padding: 100px 0;
  background-color: white;
}

.contact-content {
  display: flex;
  gap: 50px;
  margin-top: 50px;
}

.contact-info {
  flex: 1;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.info-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.info-text h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: var(--dark-color);
}

.info-text a, .info-text p {
  color: var(--gray-color);
  transition: var(--transition);
}

.info-text a:hover {
  color: var(--primary-color);
}

.contact-social {
  margin-top: 50px;
}

.contact-social h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f8f9fa;
  color: var(--dark-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icon:hover {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
}

.contact-form {
  flex: 1;
  background-color: #f8f9fa;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 1em;
}

.submit-button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-button:hover {
  background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
}

/* Footer */
.main-footer {
  background-color: var(--dark-color);
  color: white;
  padding: 70px 0 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-about {
  margin-bottom: 30px;
}

.footer-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  background-color: rgba(163, 163, 163, 0.185);
  padding: 10px;
  border-radius: 15px;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  color: white;
  font-size: 1.2rem;
  transition: var(--transition);
}

.footer-social a:hover {
  color: var(--accent-color);
}

.footer-links h3,
.footer-services h3,
.footer-contact h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3::after,
.footer-services h3::after,
.footer-contact h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.footer-links ul li,
.footer-services ul li {
  margin-bottom: 10px;
}

.footer-links a,
.footer-services a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover,
.footer-services a:hover {
  color: white;
  padding-left: 5px;
}

.footer-contact ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin-bottom: 5px;
}

.footer-bottom strong {
  color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 992px) {
  .identity-content,
  .about-content,
  .contact-content {
    flex-direction: column;
  }
  
  .identity-image,
  .about-image {
    order: -1;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .header-logo-title {
    margin-bottom: 1.5rem;
  }
  
  header h1 {
    font-size: 2.5rem;
  }
  
  .tagline {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .identity-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .profile-photo {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 576px) {
  header h1 {
    font-size: 2rem;
  }
  
  .tagline {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .header-services {
    flex-direction: column;
    align-items: center;
  }
  
  .service-tag {
    width: fit-content;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 1s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}