/* ===========================
   CuidosPR - Custom Styles
   =========================== */

/* CSS Variables */
:root {
    --color-primary: #2D6BE4;
    --color-secondary: #FF7B2C;
    --color-accent: #38C9A0;
    --color-dark: #1A1F36;
    --color-light: #F7F9FC;
    --color-white: #FFFFFF;
    --shadow-sm: 0 2px 12px rgba(45,107,228,0.06);
    --shadow-md: 0 4px 24px rgba(45,107,228,0.10);
    --shadow-lg: 0 12px 48px rgba(45,107,228,0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s ease;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-dark);
    background: var(--color-light);
    opacity: 0;
    animation: pageFadeIn 0.5s ease forwards;
}

@keyframes pageFadeIn {
    to { opacity: 1; }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    color: var(--color-dark);
}

a { color: var(--color-primary); transition: var(--transition); }
a:hover { color: #1a4db8; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #c7d2fe; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

/* Spacing utility */
.py-6 { padding-top: 5rem; padding-bottom: 5rem; }
.bg-light-custom { background: var(--color-light) !important; }

/* ===========================
   Navbar
   =========================== */
#mainNav {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 16px rgba(45,107,228,0.08);
    padding: 0.25rem 0;
    z-index: 1040;
    overflow: visible;
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-primary) !important;
    letter-spacing: -0.02em;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible;
}
.navbar-logo {
    height: 100px;
    width: auto;
    display: block;
    position: relative;
    z-index: 1041;
    transform: translateY(20px);
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15));
}

#mainNav .nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-dark) !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--color-primary) !important;
    background: rgba(45,107,228,0.06);
}

.btn-registra {
    background: linear-gradient(135deg, var(--color-secondary), #e06a22);
    color: white !important;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    border: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255,123,44,0.3);
}
.btn-registra:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,123,44,0.45);
    color: white !important;
}

/* ===========================
   Buttons
   =========================== */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--color-primary), #1a4db8);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    padding: 0.5rem 1.25rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(45,107,228,0.25);
    text-decoration: none;
    display: inline-block;
}
.btn-primary-custom:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45,107,228,0.4);
}

.btn-mensaje {
    background: linear-gradient(135deg, #25D366, #1da851);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    padding: 0.5rem 1.25rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37,211,102,0.25);
    text-decoration: none;
    display: inline-block;
}
.btn-mensaje:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37,211,102,0.4);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #1da851);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    padding: 0.5rem 1.25rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37,211,102,0.25);
    text-decoration: none;
    display: inline-block;
}
.btn-whatsapp:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37,211,102,0.4);
}

.btn-search {
    background: linear-gradient(135deg, var(--color-secondary), #e06a22);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    padding: 0 1.75rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255,123,44,0.3);
}
.btn-search:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255,123,44,0.4);
}

.btn-white-cta {
    background: white;
    color: var(--color-primary);
    border: none;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-white-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    color: var(--color-primary);
}

.btn-footer-cta {
    background: linear-gradient(135deg, var(--color-secondary), #e06a22);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    padding: 0.5rem 1.25rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
}
.btn-footer-cta:hover {
    color: white;
    transform: translateY(-1px);
}

/* ===========================
   Hero
   =========================== */
.text-white-75 { color: rgba(255,255,255,0.75); }

.badge-link {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    padding: 0.35rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}
.badge-link:hover {
    background: rgba(255,255,255,0.25);
    color: white;
}

.bg-secondary-custom { background: var(--color-secondary) !important; }

/* ===========================
   Section Titles
   =========================== */
.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}
.section-subtitle {
    color: #6b7280;
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* ===========================
   Cuido Cards
   =========================== */
.cuido-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.cuido-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.cuido-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.cuido-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.cuido-card:hover .cuido-card-img img {
    transform: scale(1.05);
}
.cuido-no-foto {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a3a8f 100%);
}

.cuido-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cuido-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.cuido-capacity {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(26,31,54,0.75);
    color: white;
    border-radius: 20px;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* Badges */
.badge-tipo {
    border-radius: 20px;
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.tipo-cuido { background: rgba(45,107,228,0.15); color: #1a4db8; }
.tipo-centro-de-cuido { background: rgba(255,123,44,0.15); color: #c05800; }
.tipo-campamento { background: rgba(56,201,160,0.15); color: #0d7a5f; }
.tipo-centro-para-adultos-mayores { background: rgba(124,58,237,0.15); color: #5b21b6; }
.tipo-tutoría { background: rgba(236,72,153,0.15); color: #9d174d; }
.tipo-centro-de-tutorias { background: rgba(236,72,153,0.15); color: #9d174d; }
.tipo-centro-de-tutorías { background: rgba(236,72,153,0.15); color: #9d174d; }
.tipo-servicios-tecnológicos { background: rgba(14,165,233,0.15); color: #0369a1; }

/* Star / Favorite button */
.btn-star {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: color .15s;
}
.btn-star:hover, .btn-star.starred { color: #f59e0b; }
.btn-star .star-icon { font-size: 1.1rem; }

.badge-tipo-sm {
    display: inline-block;
    border-radius: 12px;
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
}

.badge-lic {
    background: rgba(56,201,160,0.2);
    color: #0d7a5f;
    border-radius: 20px;
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.cuido-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.82rem;
    color: #6b7280;
}

/* ===========================
   Page Header
   =========================== */
.page-header-section {
    background: linear-gradient(135deg, var(--color-dark), #2a3263);
    color: white;
    padding: 2.5rem 0 2rem;
}
.page-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin: 0;
}
.page-subtitle {
    color: rgba(255,255,255,0.7);
    margin: 0.25rem 0 0;
}
.page-header-section .breadcrumb-item a { color: rgba(255,255,255,0.6); text-decoration: none; }
.page-header-section .breadcrumb-item a:hover { color: white; }
.page-header-section .breadcrumb-item.active { color: rgba(255,255,255,0.9); }
.page-header-section .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* Force white headings inside any dark header section */
.page-header-section h1, .page-header-section h2, .page-header-section h3,
.page-header-section h4, .page-header-section h5, .page-header-section h6 { color: white; }
.profile-hero h1, .profile-hero h2, .profile-hero h3,
.profile-hero h4, .profile-hero h5, .profile-hero h6 { color: white; }
.panel-header h1, .panel-header h2, .panel-header h3,
.panel-header h4, .panel-header h5, .panel-header h6 { color: white; }
.pricing-hero h1, .pricing-hero h2, .pricing-hero h3,
.pricing-hero h4, .pricing-hero h5, .pricing-hero h6 { color: white; }

/* Type badges on dark/blue header backgrounds — override coloured text with white */
.profile-hero .badge-tipo,
.page-header-section .badge-tipo {
    background: rgba(255,255,255,0.18) !important;
    color: white !important;
    border: 1px solid rgba(255,255,255,0.35);
}
.profile-hero .badge-lic {
    background: rgba(56,201,160,0.35) !important;
    color: white !important;
}

/* Star button on dark backgrounds */
.profile-hero .btn-star { color: rgba(255,255,255,0.85); }
.profile-hero .btn-star:hover,
.profile-hero .btn-star.starred { color: #fbbf24; }

/* ===========================
   Contact Page
   =========================== */
.contact-info-card, .contact-form-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.contact-item:last-child { border-bottom: none; }

.contact-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.contact-label { font-size: 0.78rem; color: #6b7280; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.contact-value { font-weight: 600; color: var(--color-dark); }

/* ===========================
   Footer
   =========================== */
.site-footer {
    background: var(--color-dark);
    color: rgba(255,255,255,0.75);
}

.footer-brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
}
.footer-logo {
    height: 58px;
    width: auto;
}

.footer-tagline { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.6; }

.footer-heading {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-links a:hover { color: white; padding-left: 4px; }

.footer-text { font-size: 0.88rem; color: rgba(255,255,255,0.6); }

.social-links { display: flex; gap: 10px; }
.social-link {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.75);
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}
.social-link:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    background: rgba(0,0,0,0.25);
    padding: 1rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
}

/* ===========================
   Profile Page
   =========================== */
.profile-hero .breadcrumb-item a { color: rgba(255,255,255,0.65); text-decoration: none; }
.profile-hero .breadcrumb-item a:hover { color: white; }
.profile-hero .breadcrumb-item.active { color: rgba(255,255,255,0.9); }
.profile-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
    .section-title { font-size: 1.6rem; }
    .hero-glass { padding: 2rem 1.5rem; }
    h1.display-4 { font-size: 1.9rem; }
    .py-6 { padding-top: 3rem; padding-bottom: 3rem; }
    .cuido-card-img { height: 180px; }
}
